aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/trace-event-perl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-perl.c b/tools/perf/util/trace-event-perl.c
index 6f10e7602452..6d6d76b8a21e 100644
--- a/tools/perf/util/trace-event-perl.c
+++ b/tools/perf/util/trace-event-perl.c
@@ -379,7 +379,11 @@ static int perl_start_script(const char *script, int argc, const char **argv)
379 goto error; 379 goto error;
380 } 380 }
381 381
382 perl_run(my_perl); 382 if (perl_run(my_perl)) {
383 err = -1;
384 goto error;
385 }
386
383 if (SvTRUE(ERRSV)) { 387 if (SvTRUE(ERRSV)) {
384 err = -1; 388 err = -1;
385 goto error; 389 goto error;