perf scripting: Add perf_session to scripting_context
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:22:59 +0000 (22:22 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:03:17 +0000 (10:03 -0300)
commit67e50ce0e32580d90f64556a51b7cb2a872697ca
treeea3b3867e600877f6f75f894dc21f13ec0b7c794
parentcac30400a6d8159e2510a4a258db9c4ac6fbbba5
perf scripting: Add perf_session to scripting_context

This is preparation for allowing a script to set the itrace options
for the session if they have not already been set.

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-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/trace-event.h