Arnaldo Carvalho de Melo
93ec4ce789
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 <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-jt07vfp6bd8y50c05j1t7hrn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-07-06 10:21:46 -03:00
..
2015-07-05 22:59:05 -03:00
2015-05-13 14:06:42 -04:00
2015-06-19 16:39:21 -03:00
2015-06-19 16:39:21 -03:00
2015-06-23 18:28:37 -03:00
2015-06-23 18:28:37 -03:00
2015-07-05 22:48:21 -03:00
2015-05-29 12:43:43 -03:00
2015-02-27 15:52:33 -03:00
2015-05-14 10:05:22 -03:00
2015-02-18 17:16:17 +01:00
2015-05-05 18:13:24 -03:00
2015-05-15 16:12:20 -03:00
2015-05-15 16:12:20 -03:00
2015-06-25 12:28:35 -03:00
2015-03-24 12:08:07 -03:00
2015-01-21 13:24:32 -03:00
2015-01-21 13:24:32 -03:00
2015-05-27 12:21:43 -03:00
2014-10-29 10:32:49 -02:00
2014-12-09 09:14:35 -03:00
2015-06-25 15:15:50 -03:00
2015-06-25 15:15:50 -03:00
2015-04-29 10:37:49 -03:00
2015-04-02 13:18:52 -03:00
2015-05-29 12:43:39 -03:00
2015-04-02 13:18:43 -03:00
2015-02-25 16:13:12 -03:00
2015-02-25 16:13:12 -03:00
2015-06-08 10:31:40 -03:00
2015-06-08 10:31:40 -03:00
2015-05-15 16:59:43 -03:00
2015-05-14 10:05:09 -03:00
2015-05-14 10:05:22 -03:00
2015-06-23 18:21:44 -03:00
2015-06-19 18:27:13 -03:00
2015-06-25 15:15:51 -03:00
2015-06-26 11:44:37 -03:00
2015-06-26 11:50:51 -03:00
2015-06-26 11:50:51 -03:00
2014-10-29 10:32:48 -02:00
2015-06-25 15:15:49 -03:00
2015-04-29 10:37:49 -03:00
2015-06-16 10:34:38 -03:00
2015-05-27 12:21:43 -03:00
2015-04-02 13:18:47 -03:00
2015-03-21 14:53:40 -03:00
2015-07-01 17:53:48 -03:00
2015-06-19 18:27:13 -03:00
2015-06-16 10:34:38 -03:00
2015-06-16 10:34:38 -03:00
2015-03-31 17:52:32 -03:00
2015-03-31 17:52:32 -03:00
2015-05-14 10:05:22 -03:00
2015-06-07 16:08:31 +02:00
2015-05-27 21:02:17 -03:00
2015-06-25 15:15:50 -03:00
2015-05-27 12:21:43 -03:00
2015-06-23 18:21:37 -03:00
2015-05-27 12:21:43 -03:00
2015-03-19 13:53:28 -03:00
2015-05-05 18:13:01 -03:00
2015-06-23 18:21:30 -03:00
2015-04-29 10:38:01 -03:00
2015-06-23 18:21:44 -03:00
2015-05-27 12:21:45 -03:00
2015-06-08 10:31:40 -03:00
2015-05-08 16:26:26 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2015-06-26 11:07:01 -03:00
2015-06-25 15:15:50 -03:00
2015-06-25 15:15:50 -03:00
2015-06-25 15:15:50 -03:00
2015-05-04 19:48:47 -03:00
2015-02-12 17:55:18 -03:00
2015-06-19 18:14:05 -03:00
2015-05-05 18:13:24 -03:00
2014-12-19 13:09:43 +01:00
2015-06-08 10:30:31 -03:00
2015-06-26 11:46:00 -03:00
2015-06-26 12:05:04 -03:00
2015-05-04 12:43:54 -03:00
2015-05-04 12:43:54 -03:00
2015-07-06 10:21:46 -03:00
2015-06-25 15:15:50 -03:00
2015-06-08 10:31:40 -03:00
2015-03-24 12:08:43 -03:00
2015-06-26 12:11:53 -03:00
2015-05-05 18:13:24 -03:00
2015-03-24 12:08:30 -03:00
2015-06-26 11:07:01 -03:00
2015-06-26 11:07:01 -03:00
2015-06-19 16:03:33 -03:00
2015-06-19 16:03:33 -03:00
2015-05-27 12:21:44 -03:00
2015-05-18 10:17:33 -03:00
2015-06-07 16:09:06 +02:00
2015-05-27 12:21:45 -03:00
2015-04-02 13:18:41 -03:00
2015-04-02 13:18:41 -03:00
2014-10-29 10:32:46 -02:00
2015-06-16 10:40:03 -03:00
2014-10-29 10:32:46 -02:00
2015-06-10 11:51:24 -03:00
2015-07-06 10:21:46 -03:00
2015-06-08 10:31:40 -03:00
2015-05-29 12:43:44 -03:00
2015-06-16 10:34:39 -03:00
2015-06-16 10:34:39 -03:00
2014-11-05 10:11:26 -03:00