diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2015-07-02 17:48:23 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-07-06 10:21:46 -0300 |
| commit | 93ec4ce789995c5c58dff82193b3ec77caa8aecb (patch) | |
| tree | 34b9b83e736e93b618957a8e84732ce6ff67f7ac /tools/perf/scripts/python | |
| parent | d2d61ed55f8375a10ff606e83e2196880a775fb4 (diff) | |
perf tools: Asprintf like functions to format integer filter expression
char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints);
char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints);
Example of output formatted with those functions:
# ./tp_filter 6 12 2015
asprintf_expr_in_ints: id == 6 || id == 12 || id == 2015
asprintf_expr_not_in_ints: id != 6 && id != 12 && id != 2015
#
It'll be used with, for instance, perf_evsel__set_filter_in_ints(), that
will be used in turn to ask the kernel to filter out all raw_syscalls:*
except for the ones specified by the user via:
$ perf trace -e some,list,of,syscalls
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions