Skip to contentSkip to conversation

perf tools: Suggest using -f to override perf.data file ownership message

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jul 16, 2014 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  071266bf5b6a4f41250d2b26b000f1d2f9620afe
Gitweb:     http://git.kernel.org/tip/071266bf5b6a4f41250d2b26b000f1d2f9620afe
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 8 Jul 2014 12:40:11 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 8 Jul 2014 12:40:11 -0300

perf tools: Suggest using -f to override perf.data file ownership message

  # id
  uid=0(root) gid=0(root) groups=0(root)
  # ls -la perf.data
  -rw-------. 1 acme acme 20720 Jul  8 11:35 perf.data

Previously:

  # perf report
  file perf.data not owned by current user or root

Now:

  # perf report
  File perf.data not owned by current user or root (use -f to override)
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/util/data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/data.c +1 -1
index 55de44e..ee370a7f 100644
@@ -65,7 +65,7 @@ static int open_file_read(struct perf_data_file *file)
 		goto out_close;
 
 	if (!file->force && st.st_uid && (st.st_uid != geteuid())) {
-		pr_err("file %s not owned by current user or root\n",
+		pr_err("File %s not owned by current user or root (use -f to override)\n",
 		       file->path);
 		goto out_close;
 	}