Skip to contentSkip to conversation

perf tool: Add missing subcommand `version`

PATCH Applied Sangwon Hong 3 participants 3 messages Sep 19, 2018 – Sep 26, 2018 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tool: Add missing subcommand `version`

There isn't subcommand version when typing perf help.

Before :

$ perf help | grep version
 usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]

So add perf-version in command-list.txt for listing it when typing perf help.

After :

$ perf help | grep version
 usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]
   version         display the version of perf binary
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Jin Yao <[email protected]>
---
 tools/perf/command-list.txt | 1 +
 1 file changed, 1 insertion(+)
tools/perf/command-list.txt +1 -0
index 2d0caf20ff3a..bc6c585f74fc 100644
@@ -30,3 +30,4 @@ perf-test			mainporcelain common
 perf-timechart			mainporcelain common
 perf-top			mainporcelain common
 perf-trace			mainporcelain audit
+perf-version			mainporcelain common
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

Em Wed, Sep 19, 2018 at 12:49:11AM -0700, Sangwon Hong escreveu:

Quoted 7 lines

There isn't subcommand version when typing perf help.

Before :

$ perf help | grep version
 usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]
Quoted 8 lines

So add perf-version in command-list.txt for listing it when typing perf help.

After :

$ perf help | grep version
 usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]
   version         display the version of perf binary

Thanks, applied.

- Arnaldo

#2 lore raw

[tip:perf/core] perf help: Add missing subcommand `version`

In reply to Sangwon Hong
perf help: Add missing subcommand `version`
Commit-ID:  3b9c25c0a04675c5d8d4390d9d9b661135751b27
Gitweb:     https://git.kernel.org/tip/3b9c25c0a04675c5d8d4390d9d9b661135751b27
Author:     Sangwon Hong <[email protected]>
AuthorDate: Wed, 19 Sep 2018 00:49:11 -0700
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 19 Sep 2018 14:53:36 -0300

perf help: Add missing subcommand version

There isn't subcommand version when typing perf help.

Before :

  $ perf help | grep version
   usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]

So add perf-version in command-list.txt for listing it when typing perf help.

After :

$ perf help | grep version

usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS]
version display the version of perf binary

---
 tools/perf/command-list.txt | 1 +
 1 file changed, 1 insertion(+)
tools/perf/command-list.txt +1 -0
index 2d0caf20ff3a..bc6c585f74fc 100644
@@ -30,3 +30,4 @@ perf-test			mainporcelain common
 perf-timechart			mainporcelain common
 perf-top			mainporcelain common
 perf-trace			mainporcelain audit
+perf-version			mainporcelain common