* [PATCH v2] perf list: Fix --raw-dump argument
@ 2014-04-11 0:42 Ramkumar Ramachandra
2014-04-11 10:32 ` Jiri Olsa
0 siblings, 1 reply; 4+ messages in thread
From: Ramkumar Ramachandra @ 2014-04-11 0:42 UTC (permalink / raw)
To: LKML; +Cc: David Ahern, Jiri Olsa, Arnaldo Carvalho de Melo
While adding usage information, 44d742e (perf list: Add usage,
2013-10-30) broke
$ perf list --raw-dump
Fix this by making raw-dump a subcommand.
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
tools/perf/builtin-list.c | 2 +-
tools/perf/perf-completion.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
index 011195e..c74aef5 100644
--- a/tools/perf/builtin-list.c
+++ b/tools/perf/builtin-list.c
@@ -53,7 +53,7 @@ int cmd_list(int argc, const char **argv, const char *prefix __maybe_unused)
print_hwcache_events(NULL, false);
else if (strcmp(argv[i], "pmu") == 0)
print_pmu_events(NULL, false);
- else if (strcmp(argv[i], "--raw-dump") == 0)
+ else if (strcmp(argv[i], "raw-dump") == 0)
print_events(NULL, true);
else {
char *sep = strchr(argv[i], ':'), *s;
diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh
index ae3a576..8f518f0 100644
--- a/tools/perf/perf-completion.sh
+++ b/tools/perf/perf-completion.sh
@@ -119,7 +119,7 @@ __perf_main ()
fi
# List possible events for -e option
elif [[ $prev == "-e" && "${words[1]}" == @(record|stat|top) ]]; then
- evts=$($cmd list --raw-dump)
+ evts=$($cmd list raw-dump)
__perfcomp_colon "$evts" "$cur"
# List subcommands for 'perf kvm'
elif [[ $prev == "kvm" ]]; then
--
1.9.2.667.ge5b74e1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] perf list: Fix --raw-dump argument
2014-04-11 0:42 [PATCH v2] perf list: Fix --raw-dump argument Ramkumar Ramachandra
@ 2014-04-11 10:32 ` Jiri Olsa
2014-04-11 13:08 ` Ramkumar Ramachandra
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Olsa @ 2014-04-11 10:32 UTC (permalink / raw)
To: Ramkumar Ramachandra; +Cc: LKML, David Ahern, Arnaldo Carvalho de Melo
On Thu, Apr 10, 2014 at 08:42:33PM -0400, Ramkumar Ramachandra wrote:
> While adding usage information, 44d742e (perf list: Add usage,
> 2013-10-30) broke
>
> $ perf list --raw-dump
>
> Fix this by making raw-dump a subcommand.
you need to update perf-completion.sh now
also please add it to perf list man page as well
thanks,
jirka
>
> Cc: David Ahern <dsahern@gmail.com>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
> ---
> tools/perf/builtin-list.c | 2 +-
> tools/perf/perf-completion.sh | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
> index 011195e..c74aef5 100644
> --- a/tools/perf/builtin-list.c
> +++ b/tools/perf/builtin-list.c
> @@ -53,7 +53,7 @@ int cmd_list(int argc, const char **argv, const char *prefix __maybe_unused)
> print_hwcache_events(NULL, false);
> else if (strcmp(argv[i], "pmu") == 0)
> print_pmu_events(NULL, false);
> - else if (strcmp(argv[i], "--raw-dump") == 0)
> + else if (strcmp(argv[i], "raw-dump") == 0)
> print_events(NULL, true);
> else {
> char *sep = strchr(argv[i], ':'), *s;
> diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh
> index ae3a576..8f518f0 100644
> --- a/tools/perf/perf-completion.sh
> +++ b/tools/perf/perf-completion.sh
> @@ -119,7 +119,7 @@ __perf_main ()
> fi
> # List possible events for -e option
> elif [[ $prev == "-e" && "${words[1]}" == @(record|stat|top) ]]; then
> - evts=$($cmd list --raw-dump)
> + evts=$($cmd list raw-dump)
> __perfcomp_colon "$evts" "$cur"
> # List subcommands for 'perf kvm'
> elif [[ $prev == "kvm" ]]; then
> --
> 1.9.2.667.ge5b74e1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] perf list: Fix --raw-dump argument
2014-04-11 10:32 ` Jiri Olsa
@ 2014-04-11 13:08 ` Ramkumar Ramachandra
2014-04-11 13:14 ` Jiri Olsa
0 siblings, 1 reply; 4+ messages in thread
From: Ramkumar Ramachandra @ 2014-04-11 13:08 UTC (permalink / raw)
To: Jiri Olsa; +Cc: LKML, David Ahern, Arnaldo Carvalho de Melo
Jiri Olsa wrote:
> you need to update perf-completion.sh now
> also please add it to perf list man page as well
I updated perf-completion.sh, although I didn't mention it in the
commit message. I'll add it to the perf-list man page and send out
another version.
Ram
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] perf list: Fix --raw-dump argument
2014-04-11 13:08 ` Ramkumar Ramachandra
@ 2014-04-11 13:14 ` Jiri Olsa
0 siblings, 0 replies; 4+ messages in thread
From: Jiri Olsa @ 2014-04-11 13:14 UTC (permalink / raw)
To: Ramkumar Ramachandra; +Cc: LKML, David Ahern, Arnaldo Carvalho de Melo
On Fri, Apr 11, 2014 at 09:08:03AM -0400, Ramkumar Ramachandra wrote:
> Jiri Olsa wrote:
> > you need to update perf-completion.sh now
> > also please add it to perf list man page as well
>
> I updated perf-completion.sh, although I didn't mention it in the
> commit message. I'll add it to the perf-list man page and send out
> another version.
ugh, I'm getting blind.. sry :-\
thanks,
jirka
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-11 13:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11 0:42 [PATCH v2] perf list: Fix --raw-dump argument Ramkumar Ramachandra
2014-04-11 10:32 ` Jiri Olsa
2014-04-11 13:08 ` Ramkumar Ramachandra
2014-04-11 13:14 ` Jiri Olsa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.