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>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
cac30400a6
commit
67e50ce0e3
@@ -66,7 +66,8 @@ static void print_python_unsupported_msg(void)
|
||||
|
||||
static int python_start_script_unsupported(const char *script __maybe_unused,
|
||||
int argc __maybe_unused,
|
||||
const char **argv __maybe_unused)
|
||||
const char **argv __maybe_unused,
|
||||
struct perf_session *session __maybe_unused)
|
||||
{
|
||||
print_python_unsupported_msg();
|
||||
|
||||
@@ -131,7 +132,8 @@ static void print_perl_unsupported_msg(void)
|
||||
|
||||
static int perl_start_script_unsupported(const char *script __maybe_unused,
|
||||
int argc __maybe_unused,
|
||||
const char **argv __maybe_unused)
|
||||
const char **argv __maybe_unused,
|
||||
struct perf_session *session __maybe_unused)
|
||||
{
|
||||
print_perl_unsupported_msg();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user