Skip to content

trace-cmd filtering

Gabriel Krisman Bertazi linux-trace-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v11 patch 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3trace-cmd report: Ensure filter is applied to single input filetracecmd/trace-read.c+4 -30 replies
2/3trace-cmd-report: Support global filterstracecmd/trace-read.c+26 -160 replies
3/3documentation: trace-cmd-report: Document filter scopeDocumentation/trace-cmd/trace-cmd-report.1.txt+6 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH trace-cmd v2 0/3] trace-cmd filtering

Hi Steve,

This implements my fix to restore single input filtering behavior (bz217038) and adds support for global filters, as you requested.

On another topic, a current behavior that seems weird in my opinion is that the following negates the second filter as well.

"trace-cmd -i trace.dat.1 -v -F tp1 -i trace.dat.2 -F tp2"

I'd prefer that -v would apply only to the following -F. It'd allow me to do:

  "trace-cmd -v -F 'mm_page_alloc' -i trace.dat.1 -i trace.dat.2 ... \
             -i trace.dat.10 -F 'mm_page_alloc:order==1'"

It obviously breaks the interface, so I didn't implement it here. Would like to hear your input, though. We could have a new syntax:

"trace-cmd ! -F tp1 -F tp2 ! -F tp3"

Thanks,

Gabriel Krisman Bertazi (3):
trace-cmd report: Ensure filter is applied to single input file
trace-cmd-report: Support global filters
documentation: trace-cmd-report: Document filter scope

 .../trace-cmd/trace-cmd-report.1.txt          |  8 +++-
 tracecmd/trace-read.c                         | 45 ++++++++++++-------
 2 files changed, 34 insertions(+), 19 deletions(-)
Signature · 1 line
2.40.0