Skip to contentSkip to conversation

perf buildid-cache: update help text for purge command

PATCH In review Thomas Richter 2 participants 2 messages Oct 27, 2017 – Oct 28, 2017 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf buildid-cache: update help text for purge command

Clarify the perf buildid-cache help text for the purge operation. The purge subcommand takes a list of files (binaries) as option parameter. Make the wording the same as for the add and remove operation.

---
 tools/perf/builtin-buildid-cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-buildid-cache.c +2 -2
index bcd2b0e..04164d5 100644
@@ -336,8 +336,8 @@ int cmd_buildid_cache(int argc, const char **argv)
 		   "file", "kcore file to add"),
 	OPT_STRING('r', "remove", &remove_name_list_str, "file list",
 		    "file(s) to remove"),
-	OPT_STRING('p', "purge", &purge_name_list_str, "path list",
-		    "path(s) to remove (remove old caches too)"),
+	OPT_STRING('p', "purge", &purge_name_list_str, "file list",
+		    "file(s) to remove (remove old caches too)"),
 	OPT_STRING('M', "missing", &missing_filename, "file",
 		   "to find missing build ids in the cache"),
 	OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),
Signature · 1 line
2.9.4
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Fri, 27 Oct 2017 13:01:26 +0200 Thomas Richter <[email protected]>…

Clarify the perf buildid-cache help text for the purge operation. The purge subcommand takes a list of files (binaries) as option parameter. Make the wording the same as for the add and remove operation.

Looks good to me.

Thanks!

Quoted 24 lines
---
 tools/perf/builtin-buildid-cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-buildid-cache.c +2 -2
index bcd2b0e..04164d5 100644
@@ -336,8 +336,8 @@ int cmd_buildid_cache(int argc, const char **argv)
 		   "file", "kcore file to add"),
 	OPT_STRING('r', "remove", &remove_name_list_str, "file list",
 		    "file(s) to remove"),
-	OPT_STRING('p', "purge", &purge_name_list_str, "path list",
-		    "path(s) to remove (remove old caches too)"),
+	OPT_STRING('p', "purge", &purge_name_list_str, "file list",
+		    "file(s) to remove (remove old caches too)"),
 	OPT_STRING('M', "missing", &missing_filename, "file",
 		   "to find missing build ids in the cache"),
 	OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),
Signature · 1 line
2.9.4
Signature · 1 line
Masami Hiramatsu <[email protected]>