Skip to content

Commit

Permalink
perf trace/scripting: Add Fedora libperl install note to doc
Browse files Browse the repository at this point in the history
Fedora needs perl-ExtUtils-Embed for Perl scripting, which also
brings along libperl-devel; note this info for the convenience
of Fedora users.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: anton@samba.org
Cc: hch@infradead.org
LKML-Reference: <1259565529-6407-5-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Nov 30, 2009
1 parent 61381de commit 8ea339a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/perf/scripts/perl/Perf-Trace-Util/README
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ INSTALLATION
Building perf with perf trace Perl scripting should install this
module in the right place.

You should make sure libperl is installed first e.g. apt-get install
libperl-dev.
You should make sure libperl and ExtUtils/Embed.pm are installed first
e.g. apt-get install libperl-dev or yum install perl-ExtUtils-Embed.

DEPENDENCIES

Expand Down
4 changes: 3 additions & 1 deletion tools/perf/util/trace-event-perl.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,9 @@ struct scripting_ops perl_scripting_ops = {
void setup_perl_scripting(void)
{
fprintf(stderr, "Perl scripting not supported."
" Install libperl-dev[el] and rebuild perf to get it.\n");
" Install libperl and rebuild perf to enable it. e.g. "
"apt-get install libperl-dev (ubuntu), yum install "
"perl-ExtUtils-Embed (Fedora), etc.\n");
}
#else
void setup_perl_scripting(void)
Expand Down

0 comments on commit 8ea339a

Please sign in to comment.