]> git.baikalelectronics.ru Git - kernel.git/commit
perf config: Export the perf_config_from_file() function
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Oct 2020 20:03:19 +0000 (17:03 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Oct 2020 20:03:19 +0000 (17:03 -0300)
commit71c4ad51a86f7b793d468e1c7d900fe8b1e36779
tree88296706d979a9caaf2460b93239c5b1b60e6259
parentab2404f8641efb1bfd9ad42a41c57b79091f6d0a
perf config: Export the perf_config_from_file() function

We'll use it to ask for extra config files to be loaded, profile like
stuff that will be used first to make 'perf trace' mimic 'strace' output
via a 'perf strace' command that just sets up 'perf trace' output.

At some point it'll be used for regression tests, where we'll run some
simple commands like:

  perf strace ls > perf-strace.output
  strace ls > strace.output

And then do some mutable syscall arg aware diff like tool to deal with
arguments for things like mmap, that change at each execution, to be
first ignored and then properly tracked when used accoss multiple
syscalls.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/config.c
tools/perf/util/config.h