diff options
| author | Namhyung Kim <[email protected]> | 2024-01-12 23:13:40 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-02-07 16:55:11 +0000 |
| commit | 5b9e4eefc5f8d0638aa2e7ea1e92ea88e9948cf9 (patch) | |
| tree | 3c017b7b42cdc123119086be21b827614a5222de /tools/perf/builtin-script.c | |
| parent | perf script: Print source line for each jump in brstackinsn (diff) | |
| download | kernel-5b9e4eefc5f8d0638aa2e7ea1e92ea88e9948cf9.tar.gz kernel-5b9e4eefc5f8d0638aa2e7ea1e92ea88e9948cf9.zip | |
perf record: Display data size on pipe mode
Currently pipe mode doesn't set the file size and it results in a
misleading message of 0 data size at the end. Although it might miss
some accounting for pipe header or more, just displaying the data size
would reduce the possible confusion.
Before:
$ perf record -o- perf test -w noploop | perf report -i- -q --percent-limit=1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.000 MB - ] <====== (here)
99.58% perf perf [.] noploop
After:
$ perf record -o- perf test -w noploop | perf report -i- -q --percent-limit=1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.229 MB - ]
99.46% perf perf [.] noploop
Signed-off-by: Namhyung Kim <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
