diff options
Diffstat (limited to 'tools/perf/util/scripting-engines')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-perl.c | 6 | ||||
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index b2dba9c0a3a1..0a01bac4ce02 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -432,6 +432,11 @@ error: | |||
432 | return err; | 432 | return err; |
433 | } | 433 | } |
434 | 434 | ||
435 | static int perl_flush_script(void) | ||
436 | { | ||
437 | return 0; | ||
438 | } | ||
439 | |||
435 | /* | 440 | /* |
436 | * Stop trace script | 441 | * Stop trace script |
437 | */ | 442 | */ |
@@ -633,6 +638,7 @@ static int perl_generate_script(struct pevent *pevent, const char *outfile) | |||
633 | struct scripting_ops perl_scripting_ops = { | 638 | struct scripting_ops perl_scripting_ops = { |
634 | .name = "Perl", | 639 | .name = "Perl", |
635 | .start_script = perl_start_script, | 640 | .start_script = perl_start_script, |
641 | .flush_script = perl_flush_script, | ||
636 | .stop_script = perl_stop_script, | 642 | .stop_script = perl_stop_script, |
637 | .process_event = perl_process_event, | 643 | .process_event = perl_process_event, |
638 | .generate_script = perl_generate_script, | 644 | .generate_script = perl_generate_script, |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 26e5f14239ed..56ba07cce549 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -639,6 +639,11 @@ error: | |||
639 | return err; | 639 | return err; |
640 | } | 640 | } |
641 | 641 | ||
642 | static int python_flush_script(void) | ||
643 | { | ||
644 | return 0; | ||
645 | } | ||
646 | |||
642 | /* | 647 | /* |
643 | * Stop trace script | 648 | * Stop trace script |
644 | */ | 649 | */ |
@@ -823,6 +828,7 @@ static int python_generate_script(struct pevent *pevent, const char *outfile) | |||
823 | struct scripting_ops python_scripting_ops = { | 828 | struct scripting_ops python_scripting_ops = { |
824 | .name = "Python", | 829 | .name = "Python", |
825 | .start_script = python_start_script, | 830 | .start_script = python_start_script, |
831 | .flush_script = python_flush_script, | ||
826 | .stop_script = python_stop_script, | 832 | .stop_script = python_stop_script, |
827 | .process_event = python_process_event, | 833 | .process_event = python_process_event, |
828 | .generate_script = python_generate_script, | 834 | .generate_script = python_generate_script, |