X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fevent-rule%2Fsyscall.h;h=f9fd2aba37f53e77c2551b8102918f4fe7c158b9;hb=f6a5af193de5e5f219111604382ec69b784a49c7;hp=28766ecba3662f6472d837dfbff3352e4f4c168e;hpb=57739a6b3247c7ded74522906e214eff0d6dc14c;p=lttng-tools.git diff --git a/include/lttng/event-rule/syscall.h b/include/lttng/event-rule/syscall.h index 28766ecba..f9fd2aba3 100644 --- a/include/lttng/event-rule/syscall.h +++ b/include/lttng/event-rule/syscall.h @@ -14,7 +14,7 @@ extern "C" { #endif -enum lttng_event_rule_syscall_emission_site_type { +enum lttng_event_rule_syscall_emission_site { LTTNG_EVENT_RULE_SYSCALL_EMISSION_SITE_ENTRY_EXIT = 0, LTTNG_EVENT_RULE_SYSCALL_EMISSION_SITE_ENTRY = 1, LTTNG_EVENT_RULE_SYSCALL_EMISSION_SITE_EXIT = 2, @@ -25,16 +25,16 @@ enum lttng_event_rule_syscall_emission_site_type { * Create a newly allocated syscall event rule. * * The default pattern is '*'. - * The default emission site type is LTTNG_EVENT_RULE_SYSCALL_EMISSION_SITE_ENTRY_EXIT. + * The default emission site is LTTNG_EVENT_RULE_SYSCALL_EMISSION_SITE_ENTRY_EXIT. * * Returns a new event rule on success, NULL on failure. This event rule must be * destroyed using lttng_event_rule_destroy(). */ extern struct lttng_event_rule *lttng_event_rule_syscall_create(enum - lttng_event_rule_syscall_emission_site_type emission_site_type); + lttng_event_rule_syscall_emission_site emission_site); /* - * Set the pattern of a syscall event rule. + * Set the name pattern of a syscall event rule. * * Pattern can contain wildcard '*'. See man lttng-enable-event. * @@ -43,11 +43,11 @@ extern struct lttng_event_rule *lttng_event_rule_syscall_create(enum * Returns LTTNG_EVENT_RULE_STATUS_OK on success, LTTNG_EVENT_RULE_STATUS_INVALID * if invalid parameters are passed. */ -extern enum lttng_event_rule_status lttng_event_rule_syscall_set_pattern( +extern enum lttng_event_rule_status lttng_event_rule_syscall_set_name_pattern( struct lttng_event_rule *rule, const char *pattern); /* - * Get the pattern of a syscall event rule. + * Get the name pattern of a syscall event rule. * * The caller does not assume the ownership of the returned pattern. The * pattern shall only only be used for the duration of the event rule's @@ -58,7 +58,7 @@ extern enum lttng_event_rule_status lttng_event_rule_syscall_set_pattern( * parameter is passed, or LTTNG_EVENT_RULE_STATUS_UNSET if a pattern * was not set prior to this call. */ -extern enum lttng_event_rule_status lttng_event_rule_syscall_get_pattern( +extern enum lttng_event_rule_status lttng_event_rule_syscall_get_name_pattern( const struct lttng_event_rule *rule, const char **pattern); /* @@ -88,12 +88,12 @@ extern enum lttng_event_rule_status lttng_event_rule_syscall_get_filter( const struct lttng_event_rule *rule, const char **expression); /* - * Get the emission site type of a syscall event rule. + * Get the emission site of a syscall event rule. * - * Returns a enum lttng_event_rule_syscall_emission_site_type. + * Returns a enum lttng_event_rule_syscall_emission_site. */ -extern enum lttng_event_rule_syscall_emission_site_type -lttng_event_rule_syscall_get_emission_site_type( +extern enum lttng_event_rule_syscall_emission_site +lttng_event_rule_syscall_get_emission_site( const struct lttng_event_rule *rule); #ifdef __cplusplus