projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event-rule: syscall: set the default pattern to '*'
[lttng-tools.git]
/
src
/
common
/
event-rule
/
syscall.c
diff --git
a/src/common/event-rule/syscall.c
b/src/common/event-rule/syscall.c
index fde01019e0416c93c25afc75b10988087687ccc7..8103eaa6131f64b97b125bc9b2ada4d619f77dac 100644
(file)
--- a/
src/common/event-rule/syscall.c
+++ b/
src/common/event-rule/syscall.c
@@
-148,7
+148,7
@@
static enum lttng_error_code lttng_event_rule_syscall_generate_filter_bytecode(
struct lttng_event_rule_syscall *syscall;
enum lttng_event_rule_status status;
const char *filter;
struct lttng_event_rule_syscall *syscall;
enum lttng_event_rule_status status;
const char *filter;
- struct lttng_
filter_
bytecode *bytecode = NULL;
+ struct lttng_bytecode *bytecode = NULL;
assert(rule);
assert(rule);
@@
-205,7
+205,7
@@
static const char *lttng_event_rule_syscall_get_internal_filter(
return syscall->internal_filter.filter;
}
return syscall->internal_filter.filter;
}
-static const struct lttng_
filter_
bytecode *
+static const struct lttng_bytecode *
lttng_event_rule_syscall_get_internal_filter_bytecode(
const struct lttng_event_rule *rule)
{
lttng_event_rule_syscall_get_internal_filter_bytecode(
const struct lttng_event_rule *rule)
{
@@
-217,12
+217,13
@@
lttng_event_rule_syscall_get_internal_filter_bytecode(
return syscall->internal_filter.bytecode;
}
return syscall->internal_filter.bytecode;
}
-static
struct lttng_event_exclusion *
-lttng_event_rule_syscall_generate_exclusions(
-
const struct lttng_event_rule *rule
)
+static
enum lttng_event_rule_generate_exclusions_status
+lttng_event_rule_syscall_generate_exclusions(
const struct lttng_event_rule *rule,
+
struct lttng_event_exclusion **exclusions
)
{
{
- /* Not supported. */
- return NULL;
+ /* Unsupported. */
+ *exclusions = NULL;
+ return LTTNG_EVENT_RULE_GENERATE_EXCLUSIONS_STATUS_NONE;
}
static unsigned long
}
static unsigned long
@@
-248,6
+249,7
@@
struct lttng_event_rule *lttng_event_rule_syscall_create(void)
{
struct lttng_event_rule *rule = NULL;
struct lttng_event_rule_syscall *syscall_rule;
{
struct lttng_event_rule *rule = NULL;
struct lttng_event_rule_syscall *syscall_rule;
+ enum lttng_event_rule_status status;
syscall_rule = zmalloc(sizeof(struct lttng_event_rule_syscall));
if (!syscall_rule) {
syscall_rule = zmalloc(sizeof(struct lttng_event_rule_syscall));
if (!syscall_rule) {
@@
-270,6
+272,14
@@
struct lttng_event_rule *lttng_event_rule_syscall_create(void)
syscall_rule->parent.generate_exclusions =
lttng_event_rule_syscall_generate_exclusions;
syscall_rule->parent.hash = lttng_event_rule_syscall_hash;
syscall_rule->parent.generate_exclusions =
lttng_event_rule_syscall_generate_exclusions;
syscall_rule->parent.hash = lttng_event_rule_syscall_hash;
+
+ /* Default pattern is '*'. */
+ status = lttng_event_rule_syscall_set_pattern(rule, "*");
+ if (status != LTTNG_EVENT_RULE_STATUS_OK) {
+ lttng_event_rule_destroy(rule);
+ rule = NULL;
+ }
+
end:
return rule;
}
end:
return rule;
}
This page took
0.024339 seconds
and
4
git commands to generate.