summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-05-30 21:22:59 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-06-01 15:03:17 +0200
commit67e50ce0e32580d90f64556a51b7cb2a872697ca (patch)
treeea3b3867e600877f6f75f894dc21f13ec0b7c794 /tools/perf/builtin-script.c
parentperf scripting: Add scripting_context__update() (diff)
downloadlinux-67e50ce0e32580d90f64556a51b7cb2a872697ca.tar.xz
linux-67e50ce0e32580d90f64556a51b7cb2a872697ca.zip
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>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index 7a7a19f52db5..fd5c257d55a8 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -4017,7 +4017,7 @@ script_found:
}
if (script_name) {
- err = scripting_ops->start_script(script_name, argc, argv);
+ err = scripting_ops->start_script(script_name, argc, argv, session);
if (err)
goto out_delete;
pr_debug("perf script started with script %s\n\n", script_name);