Skip to contentSkip to conversation

perf docu: Add description for stderr

PATCH Applied Thomas Richter 3 participants 3 messages May 13, 2019 – May 18, 2019 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf docu: Add description for stderr

Perf report displays recorded data on the screen and emits warnings and debug messages in the status line (last one on screen). Perf also supports the possibility to write all debug messages to stderr (instead of writing them to the status line). This is achieved with the following command:

 # ./perf --debug stderr=1 report -vvvvv -i ~/fast.data 2>/tmp/2
 # ll /tmp/2
 -rw-rw-r-- 1 tmricht tmricht 5420835 May  7 13:46 /tmp/2
 #

The usage of variable stderr=1 is not documented, so add it to the perf man page.

---
 tools/perf/Documentation/perf.txt | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/Documentation/perf.txt +2 -0
index 864e37597252..401f0ed67439 100644
@@ -22,6 +22,8 @@ OPTIONS
 	  verbose          - general debug messages
 	  ordered-events   - ordered events object debug messages
 	  data-convert     - data convert command debug messages
+	  stderr           - write debug output (option -v) to stderr
+	                     in browser mode
 
 --buildid-dir::
 	Setup buildid cache directory. It has higher priority than
Signature · 1 line
2.19.1
#1 lore raw

Em Mon, May 13, 2019 at 10:02:20AM +0200, Thomas Richter escreveu:

Quoted 10 lines

Perf report displays recorded data on the screen and emits warnings and debug messages in the status line (last one on screen). Perf also supports the possibility to write all debug messages to stderr (instead of writing them to the status line). This is achieved with the following command:

 # ./perf --debug stderr=1 report -vvvvv -i ~/fast.data 2>/tmp/2
 # ll /tmp/2
 -rw-rw-r-- 1 tmricht tmricht 5420835 May  7 13:46 /tmp/2
 #

Thanks, applied.

- Arnaldo

#2 lore raw

[tip:perf/core] perf docs: Add description for stderr

In reply to Thomas Richter
perf docs: Add description for stderr
Commit-ID:  6cf626563998d3f8770cc25146986810ee4a5969
Gitweb:     https://git.kernel.org/tip/6cf626563998d3f8770cc25146986810ee4a5969
Author:     Thomas Richter <[email protected]>
AuthorDate: Mon, 13 May 2019 10:02:20 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 16 May 2019 14:17:24 -0300

perf docs: Add description for stderr

'perf report' displays recorded data on the screen and emits warnings and debug messages in the status line (last one on screen).

perf also supports the possibility to write all debug messages to stderr (instead of writing them to the status line).

This is achieved with the following command:

  # ./perf --debug stderr=1 report -vvvvv -i ~/fast.data 2>/tmp/2
  # ll /tmp/2
  -rw-rw-r-- 1 tmricht tmricht 5420835 May  7 13:46 /tmp/2
  #

The usage of variable stderr=1 is not documented, so add it to the perf man page.

---
 tools/perf/Documentation/perf.txt | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/Documentation/perf.txt +2 -0
index 864e37597252..401f0ed67439 100644
@@ -22,6 +22,8 @@ OPTIONS
 	  verbose          - general debug messages
 	  ordered-events   - ordered events object debug messages
 	  data-convert     - data convert command debug messages
+	  stderr           - write debug output (option -v) to stderr
+	                     in browser mode
 
 --buildid-dir::
 	Setup buildid cache directory. It has higher priority than