Skip to content

tracing: event filtering v2

Tom Zanussi lkml 1 version In review

Get series with b4
b4 am 1237710626.7703.45.camel@charm-linux

Versions newest first

  1. v1 Latest4 patches 29 repliesIn review

Changes from the previous version from the cover letter

- added common_ prefix to the 5 common event fields
- ring_buffer_event_discard() fixes from Steven Rostedt
- changed 'and' and 'or' for compound filters to '&&' and '||'
- fixed a bug in the matching logic

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tracing: add run-time field descriptions for event filteringkernel/trace/trace.h kernel/trace/trace_events.c kernel/trace/trace_events_stage_2.h +1 more+107 -107 replies
2/4tracing: add ring_buffer_event_discard() to ring bufferinclude/linux/ring_buffer.h kernel/trace/ring_buffer.c+105 -235 replies
3/4tracing: add per-event filteringkernel/trace/Makefile kernel/trace/trace.h kernel/trace/trace_events.c +2 more+436 -06 replies
4/4tracing: add per-subsystem filteringkernel/trace/trace.h kernel/trace/trace_events.c kernel/trace/trace_events_filter.c+175 -68 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFrederic Weisbecker
1/4A-b A-b
2/4A-b
3/4A-b A-b
4/4A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] tracing: event filtering v2

Hi,

This is version 2 of my patchset adding filtering to the event-tracing infrastructure.

Changes from the previous version:

- added common_ prefix to the 5 common event fields
- ring_buffer_event_discard() fixes from Steven Rostedt
- changed 'and' and 'or' for compound filters to '&&' and '||'
- fixed a bug in the matching logic

Everything seems to work ok for me, but I haven't yet gotten around to changing the awkward UI. I plan to fix that as soon as I can i.e. allow complete compound expressions to be specified all at once, add <, >, <=,

Quoted 1 line

= and parens, etc. Until then, it should hopefully be usable for basic

filtering.

Thanks,

Tom