Commit b3d006c0 authored by Ingo Molnar's avatar Ingo Molnar

Merge branch 'perf/rename' into perf/core

Merge reason: This is an older commit under testing that was not pushed yet - merge it.

Also fix up the merge in command-list.txt.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarTom Zanussi <tzanussi@gmail.com>
parents 4c635a4e 133dc4c3
perf-trace-perl(1) perf-script-perl(1)
================== ==================
NAME NAME
---- ----
perf-trace-perl - Process trace data with a Perl script perf-script-perl - Process trace data with a Perl script
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'perf trace' [-s [Perl]:script[.pl] ] 'perf script' [-s [Perl]:script[.pl] ]
DESCRIPTION DESCRIPTION
----------- -----------
This perf trace option is used to process perf trace data using perf's This perf script option is used to process perf script data using perf's
built-in Perl interpreter. It reads and processes the input file and built-in Perl interpreter. It reads and processes the input file and
displays the results of the trace analysis implemented in the given displays the results of the trace analysis implemented in the given
Perl script, if any. Perl script, if any.
...@@ -21,7 +21,7 @@ Perl script, if any. ...@@ -21,7 +21,7 @@ Perl script, if any.
STARTER SCRIPTS STARTER SCRIPTS
--------------- ---------------
You can avoid reading the rest of this document by running 'perf trace You can avoid reading the rest of this document by running 'perf script
-g perl' in the same directory as an existing perf.data trace file. -g perl' in the same directory as an existing perf.data trace file.
That will generate a starter script containing a handler for each of That will generate a starter script containing a handler for each of
the event types in the trace file; it simply prints every available the event types in the trace file; it simply prints every available
...@@ -30,13 +30,13 @@ field for each event in the trace file. ...@@ -30,13 +30,13 @@ field for each event in the trace file.
You can also look at the existing scripts in You can also look at the existing scripts in
~/libexec/perf-core/scripts/perl for typical examples showing how to ~/libexec/perf-core/scripts/perl for typical examples showing how to
do basic things like aggregate event data, print results, etc. Also, do basic things like aggregate event data, print results, etc. Also,
the check-perf-trace.pl script, while not interesting for its results, the check-perf-script.pl script, while not interesting for its results,
attempts to exercise all of the main scripting features. attempts to exercise all of the main scripting features.
EVENT HANDLERS EVENT HANDLERS
-------------- --------------
When perf trace is invoked using a trace script, a user-defined When perf script is invoked using a trace script, a user-defined
'handler function' is called for each event in the trace. If there's 'handler function' is called for each event in the trace. If there's
no handler function defined for a given event type, the event is no handler function defined for a given event type, the event is
ignored (or passed to a 'trace_handled' function, see below) and the ignored (or passed to a 'trace_handled' function, see below) and the
...@@ -112,13 +112,13 @@ write a useful trace script. The sections below cover the rest. ...@@ -112,13 +112,13 @@ write a useful trace script. The sections below cover the rest.
SCRIPT LAYOUT SCRIPT LAYOUT
------------- -------------
Every perf trace Perl script should start by setting up a Perl module Every perf script Perl script should start by setting up a Perl module
search path and 'use'ing a few support modules (see module search path and 'use'ing a few support modules (see module
descriptions below): descriptions below):
---- ----
use lib "$ENV{'PERF_EXEC_PATH'}/scripts/perl/Perf-Trace-Util/lib"; use lib "$ENV{'PERF_EXEC_PATH'}/scripts/perl/perf-script-Util/lib";
use lib "./Perf-Trace-Util/lib"; use lib "./perf-script-Util/lib";
use Perf::Trace::Core; use Perf::Trace::Core;
use Perf::Trace::Context; use Perf::Trace::Context;
use Perf::Trace::Util; use Perf::Trace::Util;
...@@ -162,7 +162,7 @@ sub trace_unhandled ...@@ -162,7 +162,7 @@ sub trace_unhandled
---- ----
The remaining sections provide descriptions of each of the available The remaining sections provide descriptions of each of the available
built-in perf trace Perl modules and their associated functions. built-in perf script Perl modules and their associated functions.
AVAILABLE MODULES AND FUNCTIONS AVAILABLE MODULES AND FUNCTIONS
------------------------------- -------------------------------
...@@ -170,7 +170,7 @@ AVAILABLE MODULES AND FUNCTIONS ...@@ -170,7 +170,7 @@ AVAILABLE MODULES AND FUNCTIONS
The following sections describe the functions and variables available The following sections describe the functions and variables available
via the various Perf::Trace::* Perl modules. To use the functions and via the various Perf::Trace::* Perl modules. To use the functions and
variables from the given module, add the corresponding 'use variables from the given module, add the corresponding 'use
Perf::Trace::XXX' line to your perf trace script. Perf::Trace::XXX' line to your perf script script.
Perf::Trace::Core Module Perf::Trace::Core Module
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -204,7 +204,7 @@ argument. ...@@ -204,7 +204,7 @@ argument.
Perf::Trace::Util Module Perf::Trace::Util Module
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
Various utility functions for use with perf trace: Various utility functions for use with perf script:
nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
nsecs_secs($nsecs) - returns whole secs portion given nsecs nsecs_secs($nsecs) - returns whole secs portion given nsecs
...@@ -214,4 +214,4 @@ Various utility functions for use with perf trace: ...@@ -214,4 +214,4 @@ Various utility functions for use with perf trace:
SEE ALSO SEE ALSO
-------- --------
linkperf:perf-trace[1] linkperf:perf-script[1]
perf-trace(1) perf-script(1)
============= =============
NAME NAME
---- ----
perf-trace - Read perf.data (created by perf record) and display trace output perf-script - Read perf.data (created by perf record) and display trace output
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
'perf trace' [<options>] 'perf script' [<options>]
'perf trace' [<options>] record <script> [<record-options>] <command> 'perf script' [<options>] record <script> [<record-options>] <command>
'perf trace' [<options>] report <script> [script-args] 'perf script' [<options>] report <script> [script-args]
'perf trace' [<options>] <script> <required-script-args> [<record-options>] <command> 'perf script' [<options>] <script> <required-script-args> [<record-options>] <command>
'perf trace' [<options>] <top-script> [script-args] 'perf script' [<options>] <top-script> [script-args]
DESCRIPTION DESCRIPTION
----------- -----------
This command reads the input file and displays the trace recorded. This command reads the input file and displays the trace recorded.
There are several variants of perf trace: There are several variants of perf script:
'perf trace' to see a detailed trace of the workload that was 'perf script' to see a detailed trace of the workload that was
recorded. recorded.
You can also run a set of pre-canned scripts that aggregate and You can also run a set of pre-canned scripts that aggregate and
summarize the raw trace data in various ways (the list of scripts is summarize the raw trace data in various ways (the list of scripts is
available via 'perf trace -l'). The following variants allow you to available via 'perf script -l'). The following variants allow you to
record and run those scripts: record and run those scripts:
'perf trace record <script> <command>' to record the events required 'perf script record <script> <command>' to record the events required
for 'perf trace report'. <script> is the name displayed in the for 'perf script report'. <script> is the name displayed in the
output of 'perf trace --list' i.e. the actual script name minus any output of 'perf script --list' i.e. the actual script name minus any
language extension. If <command> is not specified, the events are language extension. If <command> is not specified, the events are
recorded using the -a (system-wide) 'perf record' option. recorded using the -a (system-wide) 'perf record' option.
'perf trace report <script> [args]' to run and display the results 'perf script report <script> [args]' to run and display the results
of <script>. <script> is the name displayed in the output of 'perf of <script>. <script> is the name displayed in the output of 'perf
trace --list' i.e. the actual script name minus any language trace --list' i.e. the actual script name minus any language
extension. The perf.data output from a previous run of 'perf trace extension. The perf.data output from a previous run of 'perf script
record <script>' is used and should be present for this command to record <script>' is used and should be present for this command to
succeed. [args] refers to the (mainly optional) args expected by succeed. [args] refers to the (mainly optional) args expected by
the script. the script.
'perf trace <script> <required-script-args> <command>' to both 'perf script <script> <required-script-args> <command>' to both
record the events required for <script> and to run the <script> record the events required for <script> and to run the <script>
using 'live-mode' i.e. without writing anything to disk. <script> using 'live-mode' i.e. without writing anything to disk. <script>
is the name displayed in the output of 'perf trace --list' i.e. the is the name displayed in the output of 'perf script --list' i.e. the
actual script name minus any language extension. If <command> is actual script name minus any language extension. If <command> is
not specified, the events are recorded using the -a (system-wide) not specified, the events are recorded using the -a (system-wide)
'perf record' option. If <script> has any required args, they 'perf record' option. If <script> has any required args, they
should be specified before <command>. This mode doesn't allow for should be specified before <command>. This mode doesn't allow for
optional script args to be specified; if optional script args are optional script args to be specified; if optional script args are
desired, they can be specified using separate 'perf trace record' desired, they can be specified using separate 'perf script record'
and 'perf trace report' commands, with the stdout of the record step and 'perf script report' commands, with the stdout of the record step
piped to the stdin of the report script, using the '-o -' and '-i -' piped to the stdin of the report script, using the '-o -' and '-i -'
options of the corresponding commands. options of the corresponding commands.
'perf trace <top-script>' to both record the events required for 'perf script <top-script>' to both record the events required for
<top-script> and to run the <top-script> using 'live-mode' <top-script> and to run the <top-script> using 'live-mode'
i.e. without writing anything to disk. <top-script> is the name i.e. without writing anything to disk. <top-script> is the name
displayed in the output of 'perf trace --list' i.e. the actual displayed in the output of 'perf script --list' i.e. the actual
script name minus any language extension; a <top-script> is defined script name minus any language extension; a <top-script> is defined
as any script name ending with the string 'top'. as any script name ending with the string 'top'.
[<record-options>] can be passed to the record steps of 'perf trace [<record-options>] can be passed to the record steps of 'perf script
record' and 'live-mode' variants; this isn't possible however for record' and 'live-mode' variants; this isn't possible however for
<top-script> 'live-mode' or 'perf trace report' variants. <top-script> 'live-mode' or 'perf script report' variants.
See the 'SEE ALSO' section for links to language-specific See the 'SEE ALSO' section for links to language-specific
information on how to write and run your own trace scripts. information on how to write and run your own trace scripts.
...@@ -76,7 +76,7 @@ OPTIONS ...@@ -76,7 +76,7 @@ OPTIONS
Any command you can specify in a shell. Any command you can specify in a shell.
-D:: -D::
--dump-raw-trace=:: --dump-raw-script=::
Display verbose dump of the trace data. Display verbose dump of the trace data.
-L:: -L::
...@@ -95,7 +95,7 @@ OPTIONS ...@@ -95,7 +95,7 @@ OPTIONS
-g:: -g::
--gen-script=:: --gen-script=::
Generate perf-trace.[ext] starter script for given language, Generate perf-script.[ext] starter script for given language,
using current perf.data. using current perf.data.
-a:: -a::
...@@ -107,5 +107,5 @@ OPTIONS ...@@ -107,5 +107,5 @@ OPTIONS
SEE ALSO SEE ALSO
-------- --------
linkperf:perf-record[1], linkperf:perf-trace-perl[1], linkperf:perf-record[1], linkperf:perf-script-perl[1],
linkperf:perf-trace-python[1] linkperf:perf-script-python[1]
...@@ -495,7 +495,7 @@ BUILTIN_OBJS += $(OUTPUT)builtin-report.o ...@@ -495,7 +495,7 @@ BUILTIN_OBJS += $(OUTPUT)builtin-report.o
BUILTIN_OBJS += $(OUTPUT)builtin-stat.o BUILTIN_OBJS += $(OUTPUT)builtin-stat.o
BUILTIN_OBJS += $(OUTPUT)builtin-timechart.o BUILTIN_OBJS += $(OUTPUT)builtin-timechart.o
BUILTIN_OBJS += $(OUTPUT)builtin-top.o BUILTIN_OBJS += $(OUTPUT)builtin-top.o
BUILTIN_OBJS += $(OUTPUT)builtin-trace.o BUILTIN_OBJS += $(OUTPUT)builtin-script.o
BUILTIN_OBJS += $(OUTPUT)builtin-probe.o BUILTIN_OBJS += $(OUTPUT)builtin-probe.o
BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o
BUILTIN_OBJS += $(OUTPUT)builtin-lock.o BUILTIN_OBJS += $(OUTPUT)builtin-lock.o
......
...@@ -982,9 +982,9 @@ int cmd_lock(int argc, const char **argv, const char *prefix __used) ...@@ -982,9 +982,9 @@ int cmd_lock(int argc, const char **argv, const char *prefix __used)
usage_with_options(report_usage, report_options); usage_with_options(report_usage, report_options);
} }
__cmd_report(); __cmd_report();
} else if (!strcmp(argv[0], "trace")) { } else if (!strcmp(argv[0], "script")) {
/* Aliased to 'perf trace' */ /* Aliased to 'perf script' */
return cmd_trace(argc, argv, prefix); return cmd_script(argc, argv, prefix);
} else if (!strcmp(argv[0], "info")) { } else if (!strcmp(argv[0], "info")) {
if (argc) { if (argc) {
argc = parse_options(argc, argv, argc = parse_options(argc, argv,
......
...@@ -1888,10 +1888,10 @@ int cmd_sched(int argc, const char **argv, const char *prefix __used) ...@@ -1888,10 +1888,10 @@ int cmd_sched(int argc, const char **argv, const char *prefix __used)
usage_with_options(sched_usage, sched_options); usage_with_options(sched_usage, sched_options);
/* /*
* Aliased to 'perf trace' for now: * Aliased to 'perf script' for now:
*/ */
if (!strcmp(argv[0], "trace")) if (!strcmp(argv[0], "script"))
return cmd_trace(argc, argv, prefix); return cmd_script(argc, argv, prefix);
symbol__init(); symbol__init();
if (!strncmp(argv[0], "rec", 3)) { if (!strncmp(argv[0], "rec", 3)) {
......
...@@ -56,7 +56,7 @@ static void setup_scripting(void) ...@@ -56,7 +56,7 @@ static void setup_scripting(void)
static int cleanup_scripting(void) static int cleanup_scripting(void)
{ {
pr_debug("\nperf trace script stopped\n"); pr_debug("\nperf script stopped\n");
return scripting_ops->stop_script(); return scripting_ops->stop_script();
} }
...@@ -137,7 +137,7 @@ static void sig_handler(int sig __unused) ...@@ -137,7 +137,7 @@ static void sig_handler(int sig __unused)
session_done = 1; session_done = 1;
} }
static int __cmd_trace(struct perf_session *session) static int __cmd_script(struct perf_session *session)
{ {
int ret; int ret;
...@@ -247,7 +247,7 @@ static void list_available_languages(void) ...@@ -247,7 +247,7 @@ static void list_available_languages(void)
fprintf(stderr, "\n"); fprintf(stderr, "\n");
fprintf(stderr, "Scripting language extensions (used in " fprintf(stderr, "Scripting language extensions (used in "
"perf trace -s [spec:]script.[spec]):\n\n"); "perf script -s [spec:]script.[spec]):\n\n");
list_for_each_entry(s, &script_specs, node) list_for_each_entry(s, &script_specs, node)
fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name); fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name);
...@@ -586,12 +586,12 @@ static int has_required_arg(char *script_path) ...@@ -586,12 +586,12 @@ static int has_required_arg(char *script_path)
return n_args; return n_args;
} }
static const char * const trace_usage[] = { static const char * const script_usage[] = {
"perf trace [<options>]", "perf script [<options>]",
"perf trace [<options>] record <script> [<record-options>] <command>", "perf script [<options>] record <script> [<record-options>] <command>",
"perf trace [<options>] report <script> [script-args]", "perf script [<options>] report <script> [script-args]",
"perf trace [<options>] <script> [<record-options>] <command>", "perf script [<options>] <script> [<record-options>] <command>",
"perf trace [<options>] <top-script> [script-args]", "perf script [<options>] <top-script> [script-args]",
NULL NULL
}; };
...@@ -608,7 +608,7 @@ static const struct option options[] = { ...@@ -608,7 +608,7 @@ static const struct option options[] = {
"script file name (lang:script name, script name, or *)", "script file name (lang:script name, script name, or *)",
parse_scriptname), parse_scriptname),
OPT_STRING('g', "gen-script", &generate_script_lang, "lang", OPT_STRING('g', "gen-script", &generate_script_lang, "lang",
"generate perf-trace.xx script in specified language"), "generate perf-script.xx script in specified language"),
OPT_STRING('i', "input", &input_name, "file", OPT_STRING('i', "input", &input_name, "file",
"input file name"), "input file name"),
OPT_BOOLEAN('d', "debug-mode", &debug_mode, OPT_BOOLEAN('d', "debug-mode", &debug_mode,
...@@ -631,7 +631,7 @@ static bool have_cmd(int argc, const char **argv) ...@@ -631,7 +631,7 @@ static bool have_cmd(int argc, const char **argv)
return argc != 0; return argc != 0;
} }
int cmd_trace(int argc, const char **argv, const char *prefix __used) int cmd_script(int argc, const char **argv, const char *prefix __used)
{ {
char *rec_script_path = NULL; char *rec_script_path = NULL;
char *rep_script_path = NULL; char *rep_script_path = NULL;
...@@ -643,7 +643,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -643,7 +643,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
setup_scripting(); setup_scripting();
argc = parse_options(argc, argv, options, trace_usage, argc = parse_options(argc, argv, options, script_usage,
PARSE_OPT_STOP_AT_NON_OPTION); PARSE_OPT_STOP_AT_NON_OPTION);
if (argc > 1 && !strncmp(argv[0], "rec", strlen("rec"))) { if (argc > 1 && !strncmp(argv[0], "rec", strlen("rec"))) {
...@@ -657,7 +657,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -657,7 +657,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
if (!rep_script_path) { if (!rep_script_path) {
fprintf(stderr, fprintf(stderr,
"Please specify a valid report script" "Please specify a valid report script"
"(see 'perf trace -l' for listing)\n"); "(see 'perf script -l' for listing)\n");
return -1; return -1;
} }
} }
...@@ -675,8 +675,8 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -675,8 +675,8 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
if (!rec_script_path && !rep_script_path) { if (!rec_script_path && !rep_script_path) {
fprintf(stderr, " Couldn't find script %s\n\n See perf" fprintf(stderr, " Couldn't find script %s\n\n See perf"
" trace -l for available scripts.\n", argv[0]); " script -l for available scripts.\n", argv[0]);
usage_with_options(trace_usage, options); usage_with_options(script_usage, options);
} }
if (is_top_script(argv[0])) { if (is_top_script(argv[0])) {
...@@ -688,9 +688,9 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -688,9 +688,9 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
rec_args = (argc - 1) - rep_args; rec_args = (argc - 1) - rep_args;
if (rec_args < 0) { if (rec_args < 0) {
fprintf(stderr, " %s script requires options." fprintf(stderr, " %s script requires options."
"\n\n See perf trace -l for available " "\n\n See perf script -l for available "
"scripts and options.\n", argv[0]); "scripts and options.\n", argv[0]);
usage_with_options(trace_usage, options); usage_with_options(script_usage, options);
} }
} }
...@@ -823,7 +823,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -823,7 +823,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
return -1; return -1;
} }
err = scripting_ops->generate_script("perf-trace"); err = scripting_ops->generate_script("perf-script");
goto out; goto out;
} }
...@@ -831,10 +831,10 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) ...@@ -831,10 +831,10 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)
err = scripting_ops->start_script(script_name, argc, argv); err = scripting_ops->start_script(script_name, argc, argv);
if (err) if (err)
goto out; goto out;
pr_debug("perf trace started with script %s\n\n", script_name); pr_debug("perf script started with script %s\n\n", script_name);
} }
err = __cmd_trace(session); err = __cmd_script(session);
perf_session__delete(session); perf_session__delete(session);
cleanup_scripting(); cleanup_scripting();
......
...@@ -27,7 +27,7 @@ extern int cmd_report(int argc, const char **argv, const char *prefix); ...@@ -27,7 +27,7 @@ extern int cmd_report(int argc, const char **argv, const char *prefix);
extern int cmd_stat(int argc, const char **argv, const char *prefix); extern int cmd_stat(int argc, const char **argv, const char *prefix);
extern int cmd_timechart(int argc, const char **argv, const char *prefix); extern int cmd_timechart(int argc, const char **argv, const char *prefix);
extern int cmd_top(int argc, const char **argv, const char *prefix); extern int cmd_top(int argc, const char **argv, const char *prefix);
extern int cmd_trace(int argc, const char **argv, const char *prefix); extern int cmd_script(int argc, const char **argv, const char *prefix);
extern int cmd_version(int argc, const char **argv, const char *prefix); extern int cmd_version(int argc, const char **argv, const char *prefix);
extern int cmd_probe(int argc, const char **argv, const char *prefix); extern int cmd_probe(int argc, const char **argv, const char *prefix);
extern int cmd_kmem(int argc, const char **argv, const char *prefix); extern int cmd_kmem(int argc, const char **argv, const char *prefix);
......
...@@ -16,7 +16,7 @@ perf-report mainporcelain common ...@@ -16,7 +16,7 @@ perf-report mainporcelain common
perf-stat mainporcelain common perf-stat mainporcelain common
perf-timechart mainporcelain common perf-timechart mainporcelain common
perf-top mainporcelain common perf-top mainporcelain common
perf-trace mainporcelain common perf-script mainporcelain common
perf-probe mainporcelain common perf-probe mainporcelain common
perf-kmem mainporcelain common perf-kmem mainporcelain common
perf-lock mainporcelain common perf-lock mainporcelain common
......
...@@ -323,7 +323,7 @@ static void handle_internal_command(int argc, const char **argv) ...@@ -323,7 +323,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "top", cmd_top, 0 }, { "top", cmd_top, 0 },
{ "annotate", cmd_annotate, 0 }, { "annotate", cmd_annotate, 0 },
{ "version", cmd_version, 0 }, { "version", cmd_version, 0 },
{ "trace", cmd_trace, 0 }, { "script", cmd_script, 0 },
{ "sched", cmd_sched, 0 }, { "sched", cmd_sched, 0 },
{ "probe", cmd_probe, 0 }, { "probe", cmd_probe, 0 },
{ "kmem", cmd_kmem, 0 }, { "kmem", cmd_kmem, 0 },
......
/* /*
* Context.c. Python interfaces for perf trace. * Context.c. Python interfaces for perf script.
* *
* Copyright (C) 2010 Tom Zanussi <tzanussi@gmail.com> * Copyright (C) 2010 Tom Zanussi <tzanussi@gmail.com>
* *
......
/* /*
* trace-event-perl. Feed perf trace events to an embedded Perl interpreter. * trace-event-perl. Feed perf script events to an embedded Perl interpreter.
* *
* Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com> * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
* *
...@@ -411,8 +411,8 @@ static int perl_generate_script(const char *outfile) ...@@ -411,8 +411,8 @@ static int perl_generate_script(const char *outfile)
return -1; return -1;
} }
fprintf(ofp, "# perf trace event handlers, " fprintf(ofp, "# perf script event handlers, "
"generated by perf trace -g perl\n"); "generated by perf script -g perl\n");
fprintf(ofp, "# Licensed under the terms of the GNU GPL" fprintf(ofp, "# Licensed under the terms of the GNU GPL"
" License version 2\n\n"); " License version 2\n\n");
......
...@@ -442,8 +442,8 @@ static int python_generate_script(const char *outfile) ...@@ -442,8 +442,8 @@ static int python_generate_script(const char *outfile)
fprintf(stderr, "couldn't open %s\n", fname); fprintf(stderr, "couldn't open %s\n", fname);
return -1; return -1;
} }
fprintf(ofp, "# perf trace event handlers, " fprintf(ofp, "# perf script event handlers, "
"generated by perf trace -g python\n"); "generated by perf script -g python\n");
fprintf(ofp, "# Licensed under the terms of the GNU GPL" fprintf(ofp, "# Licensed under the terms of the GNU GPL"
" License version 2\n\n"); " License version 2\n\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment