perf script: Finish the rename from trace to script

The scripts have calls to 'perf trace' that need to be converted to 'perf script', do it.

This problem was introduced in 133dc4c3.
Reported-by: default avatarTorok Edwin <edwintorok@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: Torok Edwin <edwintorok@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 104db7ff
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#line 1 "Context.xs" #line 1 "Context.xs"
/* /*
* Context.xs. XS interfaces for perf trace. * Context.xs. XS interfaces for perf script.
* *
* Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com> * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
* *
......
/* /*
* Context.xs. XS interfaces for perf trace. * Context.xs. XS interfaces for perf script.
* *
* Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com> * Copyright (C) 2009 Tom Zanussi <tzanussi@gmail.com>
* *
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "perl.h" #include "perl.h"
#include "XSUB.h" #include "XSUB.h"
#include "../../../perf.h" #include "../../../perf.h"
#include "../../../util/trace-event.h" #include "../../../util/script-event.h"
MODULE = Perf::Trace::Context PACKAGE = Perf::Trace::Context MODULE = Perf::Trace::Context PACKAGE = Perf::Trace::Context
PROTOTYPES: ENABLE PROTOTYPES: ENABLE
......
Perf-Trace-Util version 0.01 Perf-Trace-Util version 0.01
============================ ============================
This module contains utility functions for use with perf trace. This module contains utility functions for use with perf script.
Core.pm and Util.pm are pure Perl modules; Core.pm contains routines Core.pm and Util.pm are pure Perl modules; Core.pm contains routines
that the core perf support for Perl calls on and should always be that the core perf support for Perl calls on and should always be
...@@ -33,7 +33,7 @@ After you do that: ...@@ -33,7 +33,7 @@ After you do that:
INSTALLATION INSTALLATION
Building perf with perf trace Perl scripting should install this Building perf with perf script Perl scripting should install this
module in the right place. module in the right place.
You should make sure libperl and ExtUtils/Embed.pm are installed first You should make sure libperl and ExtUtils/Embed.pm are installed first
......
...@@ -34,7 +34,7 @@ Perf::Trace::Context - Perl extension for accessing functions in perf. ...@@ -34,7 +34,7 @@ Perf::Trace::Context - Perl extension for accessing functions in perf.
=head1 SEE ALSO =head1 SEE ALSO
Perf (trace) documentation Perf (script) documentation
=head1 AUTHOR =head1 AUTHOR
......
...@@ -163,7 +163,7 @@ sub dump_symbolic_fields ...@@ -163,7 +163,7 @@ sub dump_symbolic_fields
__END__ __END__
=head1 NAME =head1 NAME
Perf::Trace::Core - Perl extension for perf trace Perf::Trace::Core - Perl extension for perf script
=head1 SYNOPSIS =head1 SYNOPSIS
...@@ -171,7 +171,7 @@ Perf::Trace::Core - Perl extension for perf trace ...@@ -171,7 +171,7 @@ Perf::Trace::Core - Perl extension for perf trace
=head1 SEE ALSO =head1 SEE ALSO
Perf (trace) documentation Perf (script) documentation
=head1 AUTHOR =head1 AUTHOR
......
...@@ -65,7 +65,7 @@ sub clear_term ...@@ -65,7 +65,7 @@ sub clear_term
__END__ __END__
=head1 NAME =head1 NAME
Perf::Trace::Util - Perl extension for perf trace Perf::Trace::Util - Perl extension for perf script
=head1 SYNOPSIS =head1 SYNOPSIS
...@@ -73,7 +73,7 @@ Perf::Trace::Util - Perl extension for perf trace ...@@ -73,7 +73,7 @@ Perf::Trace::Util - Perl extension for perf trace
=head1 SEE ALSO =head1 SEE ALSO
Perf (trace) documentation Perf (script) documentation
=head1 AUTHOR =head1 AUTHOR
......
...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then ...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift shift
fi fi
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/failed-syscalls.pl $comm
...@@ -7,7 +7,4 @@ if [ $# -lt 1 ] ; then ...@@ -7,7 +7,4 @@ if [ $# -lt 1 ] ; then
fi fi
comm=$1 comm=$1
shift shift
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-file.pl $comm
#!/bin/bash #!/bin/bash
# description: system-wide r/w activity # description: system-wide r/w activity
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-pid.pl perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-pid.pl
...@@ -17,7 +17,4 @@ if [ "$n_args" -gt 0 ] ; then ...@@ -17,7 +17,4 @@ if [ "$n_args" -gt 0 ] ; then
interval=$1 interval=$1
shift shift
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rwtop.pl $interval
#!/bin/bash #!/bin/bash
# description: system-wide min/max/avg wakeup latency # description: system-wide min/max/avg wakeup latency
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/wakeup-latency.pl perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/wakeup-latency.pl
#!/bin/bash #!/bin/bash
# description: workqueue stats (ins/exe/create/destroy) # description: workqueue stats (ins/exe/create/destroy)
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/perl/workqueue-stats.pl perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/workqueue-stats.pl
# perf trace event handlers, generated by perf trace -g perl # perf script event handlers, generated by perf script -g perl
# (c) 2009, Tom Zanussi <tzanussi@gmail.com> # (c) 2009, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2 # Licensed under the terms of the GNU GPL License version 2
......
...@@ -18,7 +18,7 @@ use lib "./Perf-Trace-Util/lib"; ...@@ -18,7 +18,7 @@ use lib "./Perf-Trace-Util/lib";
use Perf::Trace::Core; use Perf::Trace::Core;
use Perf::Trace::Util; use Perf::Trace::Util;
my $usage = "perf trace -s rw-by-file.pl <comm>\n"; my $usage = "perf script -s rw-by-file.pl <comm>\n";
my $for_comm = shift or die $usage; my $for_comm = shift or die $usage;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# workqueue:workqueue_destruction -e workqueue:workqueue_execution # workqueue:workqueue_destruction -e workqueue:workqueue_execution
# -e workqueue:workqueue_insertion # -e workqueue:workqueue_insertion
# #
# perf trace -p -s tools/perf/scripts/perl/workqueue-stats.pl # perf script -p -s tools/perf/scripts/perl/workqueue-stats.pl
use 5.010000; use 5.010000;
use strict; use strict;
......
# Core.py - Python extension for perf trace, core functions # Core.py - Python extension for perf script, core functions
# #
# Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com> # Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com>
# #
......
# SchedGui.py - Python extension for perf trace, basic GUI code for # SchedGui.py - Python extension for perf script, basic GUI code for
# traces drawing and overview. # traces drawing and overview.
# #
# Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com>
......
# Util.py - Python extension for perf trace, miscellaneous utility code # Util.py - Python extension for perf script, miscellaneous utility code
# #
# Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com> # Copyright (C) 2010 by Tom Zanussi <tzanussi@gmail.com>
# #
......
...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then ...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift shift
fi fi
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm
#!/bin/bash #!/bin/bash
# description: futext contention measurement # description: futext contention measurement
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/futex-contention.py perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/futex-contention.py
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# description: display a process of packet and processing time # description: display a process of packet and processing time
# args: [tx] [rx] [dev=] [debug] # args: [tx] [rx] [dev=] [debug]
perf trace -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@ perf script -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@
#!/bin/bash #!/bin/bash
# description: sched migration overview # description: sched migration overview
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sched-migration.py perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/sched-migration.py
...@@ -21,4 +21,4 @@ elif [ "$n_args" -gt 0 ] ; then ...@@ -21,4 +21,4 @@ elif [ "$n_args" -gt 0 ] ; then
interval=$1 interval=$1
shift shift
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/sctop.py $comm $interval
...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then ...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift shift
fi fi
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then ...@@ -7,4 +7,4 @@ if [ $# -gt 0 ] ; then
shift shift
fi fi
fi fi
perf trace $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm
# perf trace event handlers, generated by perf trace -g python # perf script event handlers, generated by perf script -g python
# (c) 2010, Tom Zanussi <tzanussi@gmail.com> # (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2 # Licensed under the terms of the GNU GPL License version 2
# #
......
...@@ -15,7 +15,7 @@ from perf_trace_context import * ...@@ -15,7 +15,7 @@ from perf_trace_context import *
from Core import * from Core import *
from Util import * from Util import *
usage = "perf trace -s syscall-counts-by-pid.py [comm|pid]\n"; usage = "perf script -s syscall-counts-by-pid.py [comm|pid]\n";
for_comm = None for_comm = None
for_pid = None for_pid = None
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>
# #
# perf trace event handlers have been generated by perf trace -g python # perf script event handlers have been generated by perf script -g python
# #
# This software is distributed under the terms of the GNU General # This software is distributed under the terms of the GNU General
# Public License ("GPL") version 2 as published by the Free Software # Public License ("GPL") version 2 as published by the Free Software
......
...@@ -17,7 +17,7 @@ from perf_trace_context import * ...@@ -17,7 +17,7 @@ from perf_trace_context import *
from Core import * from Core import *
from Util import * from Util import *
usage = "perf trace -s sctop.py [comm] [interval]\n"; usage = "perf script -s sctop.py [comm] [interval]\n";
for_comm = None for_comm = None
default_interval = 3 default_interval = 3
......
...@@ -14,7 +14,7 @@ from perf_trace_context import * ...@@ -14,7 +14,7 @@ from perf_trace_context import *
from Core import * from Core import *
from Util import syscall_name from Util import syscall_name
usage = "perf trace -s syscall-counts-by-pid.py [comm]\n"; usage = "perf script -s syscall-counts-by-pid.py [comm]\n";
for_comm = None for_comm = None
for_pid = None for_pid = None
......
...@@ -15,7 +15,7 @@ from perf_trace_context import * ...@@ -15,7 +15,7 @@ from perf_trace_context import *
from Core import * from Core import *
from Util import syscall_name from Util import syscall_name
usage = "perf trace -s syscall-counts.py [comm]\n"; usage = "perf script -s syscall-counts.py [comm]\n";
for_comm = None for_comm = None
......
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