linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH trace-cmd v2 0/3] trace-cmd filtering
@ 2023-03-30 18:52 Gabriel Krisman Bertazi
  2023-03-30 18:52 ` [PATCH trace-cmd v2 1/3] trace-cmd report: Ensure filter is applied to single input file Gabriel Krisman Bertazi
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Gabriel Krisman Bertazi @ 2023-03-30 18:52 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel, Gabriel Krisman Bertazi

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(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-30  8:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-30 18:52 [PATCH trace-cmd v2 0/3] trace-cmd filtering Gabriel Krisman Bertazi
2023-03-30 18:52 ` [PATCH trace-cmd v2 1/3] trace-cmd report: Ensure filter is applied to single input file Gabriel Krisman Bertazi
2023-03-30 18:52 ` [PATCH trace-cmd v2 2/3] trace-cmd-report: Support global filters Gabriel Krisman Bertazi
2023-03-30 18:52 ` [PATCH trace-cmd v2 3/3] documentation: trace-cmd-report: Document filter scope Gabriel Krisman Bertazi
2023-05-06 22:35 ` [PATCH trace-cmd v2 0/3] trace-cmd filtering Gabriel Krisman Bertazi
2023-05-07  1:51   ` Steven Rostedt
2023-05-30  8:20 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).