Skip to content

Commit

Permalink
tracing: Update documentation on tracepoint glob matching
Browse files Browse the repository at this point in the history
b0f1a59 "tracing/filters: Use a different op for glob match" added
glob matching to tracepoint filter strings. It uses the ftrace function
tracing glob matching facility that allows for the wild card character (*)
to be used at the start and/or end of the matching string.

But the documentation still states that the filtering only allows for
exact string matches.

Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt (Red Hat) committed Jun 20, 2013
1 parent 1a891cf commit c3e13c7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Documentation/trace/events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,18 @@ The operators available for numeric fields are:

And for string fields they are:

==, !=
==, !=, ~

Currently, only exact string matches are supported.
The glob (~) only accepts a wild card character (*) at the start and or
end of the string. For example:

prev_comm ~ "*sh"
prev_comm ~ "sh*"
prev_comm ~ "*sh*"

But does not allow for it to be within the string:

prev_comm ~ "ba*sh" <-- is invalid

5.2 Setting filters
-------------------
Expand Down

0 comments on commit c3e13c7

Please sign in to comment.