diff options
| author | Yang Shi <[email protected]> | 2015-09-29 21:49:43 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-10-02 19:11:08 +0000 |
| commit | 9f065194e2a505bb6fd23946b410a0036e9de2ca (patch) | |
| tree | 08a1878dc7933d72e57d494ec15c45cb562b61d9 /tools/lib/api/fs/tracing_path.c | |
| parent | perf probe: Allow probing on kmodules without dwarf (diff) | |
| download | kernel-9f065194e2a505bb6fd23946b410a0036e9de2ca.tar.gz kernel-9f065194e2a505bb6fd23946b410a0036e9de2ca.zip | |
perf record: Change 'record.samples' type to unsigned long long
When run "perf record -e", the number of samples showed up is wrong on some
32 bit systems, i.e. powerpc and arm.
For example, run the below commands on 32 bit powerpc:
perf probe -x /lib/libc.so.6 malloc
perf record -e probe_libc:malloc -a ls perf.data
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.036 MB perf.data (13829241621624967218 samples) ]
Actually, "perf script" just shows 21 samples. The number of samples is also
absurd since samples is long type, but it is printed as PRIu64.
Build test ran on x86-64, x86, aarch64, arm, mips, ppc and ppc64.
Signed-off-by: Yang Shi <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Bumped the 'hits' var used together with record.samples to 'unsigned long long' too ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions
