perf scripting python: Add perf_set_itrace_options()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:23:04 +0000 (22:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:04:24 +0000 (10:04 -0300)
commit7d00540d7deb6802cde23b132b0c50347f27cc90
tree5f2dcb3181daa1c15bb2bdb3b0b040c3cbf30dac
parente621b8ffec3dc46105eb3d9b90cdd3bc9632f6d8
perf scripting python: Add perf_set_itrace_options()

Add perf_set_itrace_options() to the perf_trace_context module so that a
script can set the itrace options for a session if they have not been set
already.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210530192308.7382-10-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/Perf-Trace-Util/Context.c