]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Add a strtoul() method to 'struct syscall_arg_fmt'
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2019 19:06:43 +0000 (16:06 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2019 19:06:43 +0000 (16:06 -0300)
commit705d953ce45df6ceb02106d4070ac2b59867ced3
tree70d92f6447e510f2cc342205d46caea91376adf8
parent041b966930ad5bdb6b32eb11ee6636bd47e7720c
perf trace: Add a strtoul() method to 'struct syscall_arg_fmt'

This will go from a string to a number, so that filter expressions can
be constructed with strings and then, before applying the tracepoint
filters (or eBPF, in the future) we can map those strings to numbers.

The first one will be for 'msr' tracepoint arguments, but real quickly
we will be able to reuse all strarrays for that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-wgqq48agcgr95b8dmn6fygtr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c