tools lib traceevent: Add filter on task CPU id
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 12 Jul 2016 13:33:06 +0000 (09:33 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 19:27:39 +0000 (16:27 -0300)
commit6d248fbda59c51ef5f2e90e11551d9e17aeb226f
tree46994b044d96741a2c4723a27e8a7f70487b4107
parent9881d7df9dddef24e34949a4510245e156746c21
tools lib traceevent: Add filter on task CPU id

Add a 'CPU' special field to allow the filter in trace-cmd report to
filter on the task's CPU.

By adding a special field 'CPU' (all caps) the user can now filter out
tasks based on which CPU they are on. This is useful when filtering out
(or in) a bunch of threads.

  -F 'CPU == 0'

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20160712093306.5b058103@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/parse-filter.c