diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-11-29 12:31:57 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-12-01 13:49:48 -0500 |
commit | b53c6487be6aab7dd626c8243514c0447b54c296 (patch) | |
tree | c5fb2bbdbb1712ad243f54ac9a9f1a08dbcd1917 /include | |
parent | d626796546dd082caa9c2eb44f5ca3df577842d1 (diff) | |
download | libtracefs-b53c6487be6aab7dd626c8243514c0447b54c296.tar.gz |
libtracefs: Rename tracefs_event_append/verify_filter() functions
The function names:
tracefs_event_append_filter()
tracefs_event_verify_filter()
Are confusing, as they do not actually affect the tep_event. What they do
is to create a filter string. Rename them to a more appropriate:
tracefs_filter_string_append()
tracefs_filter_string_verify()
We need to keep around the old names as they have been in a tagged
release. But move them to deprecated, and have them call the appropriate
names. Also remove the old name from the man pages.
Link: https://lore.kernel.org/linux-trace-devel/20211129123157.0ce043c3@gandalf.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tracefs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tracefs.h b/include/tracefs.h index 8b8b554..c9ebaa6 100644 --- a/include/tracefs.h +++ b/include/tracefs.h @@ -467,10 +467,20 @@ enum tracefs_synth_calc { TRACEFS_SYNTH_ADD, }; +int tracefs_filter_string_append(struct tep_event *event, char **filter, + enum tracefs_filter type, + const char *field, enum tracefs_compare compare, + const char *val); +int tracefs_filter_string_verify(struct tep_event *event, const char *filter, + char **err); + +/** Deprecated do not use: Instead use tracefs_filter_string_append() **/ int tracefs_event_append_filter(struct tep_event *event, char **filter, enum tracefs_filter type, const char *field, enum tracefs_compare compare, const char *val); + +/** Deprecated do not use: Instead use tracefs_filter_string_verify() **/ int tracefs_event_verify_filter(struct tep_event *event, const char *filter, char **err); |