Andres Freund
e9fac00465
perf c2c: Fix return type for histogram sorting comparision functions
commit c1c8013ec34d7163431d18367808ea40b2e305f8 upstream.
Commit 722ddfde36 ("perf tools: Fix time sorting") changed - correctly
so - hist_entry__sort to return int64. Unfortunately several of the
builtin-c2c.c comparison routines only happened to work due the cast
caused by the wrong return type.
This causes meaningless ordering of both the cacheline list, and the
cacheline details page. E.g a simple:
perf c2c record -a sleep 3
perf c2c report
will result in cacheline table like
=================================================
Shared Data Cache Line Table
=================================================
#
# ------- Cacheline ---------- Total Tot - LLC Load Hitm - - Store Reference - - Load Dram - LLC Total - Core Load Hit - - LLC Load Hit -
# Index Address Node PA cnt records Hitm Total Lcl Rmt Total L1Hit L1Miss Lcl Rmt Ld Miss Loads FB L1 L2 Llc Rmt
# ..... .............. .... ...... ....... ...... ..... ..... ... .... ..... ...... ...... .... ...... ..... ..... ..... ... .... .......
0 0x7f0d27ffba00 N/A 0 52 0.12% 13 6 7 12 12 0 0 7 14 40 4 16 0 0 0
1 0x7f0d27ff61c0 N/A 0 6353 14.04% 1475 801 674 779 779 0 0 718 1392 5574 1299 1967 0 115 0
2 0x7f0d26d3ec80 N/A 0 71 0.15% 16 4 12 13 13 0 0 12 24 58 1 20 0 9 0
3 0x7f0d26d3ec00 N/A 0 98 0.22% 23 17 6 19 19 0 0 6 12 79 0 40 0 10 0
i.e. with the list not being ordered by Total Hitm.
Fixes: 722ddfde36 ("perf tools: Fix time sorting")
Signed-off-by: Andres Freund <[email protected]>
Tested-by: Michael Petlan <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected] # v3.16+
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2020-02-05 21:22:40 +00:00 |
| .. |
|
arch
|
perf tools: Fix cross compile for ARM64
|
2019-12-31 16:44:57 +01:00 |
|
bench
|
|
|
|
Documentation
|
perf docs: Correct and clarify jitdump spec
|
2019-09-30 17:29:51 -03:00 |
|
examples/bpf
|
|
|
|
include/bpf
|
|
|
|
jvmti
|
perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy()
|
2019-10-15 11:47:38 -03:00 |
|
lib
|
libperf: Add perf_evlist__poll() function
|
2019-09-25 09:51:49 -03:00 |
|
pmu-events
|
perf vendor events s390: Remove name from L1D_RO_EXCL_WRITES description
|
2020-01-17 19:48:30 +01:00 |
|
python
|
|
|
|
scripts
|
perf scripts python: exported-sql-viewer.py: Fix use of TRUE with SQLite
|
2019-12-13 08:42:16 +01:00 |
|
tests
|
perf tests: Disable bp_signal testing for arm64
|
2019-12-31 16:44:12 +01:00 |
|
trace
|
|
|
|
ui
|
libperf: Add perf_evlist__first()/last() functions
|
2019-09-25 09:51:48 -03:00 |
|
util
|
perf map: No need to adjust the long name of modules
|
2020-01-26 10:01:02 +01:00 |
|
.gitignore
|
|
|
|
Build
|
|
|
|
builtin-annotate.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-bench.c
|
|
|
|
builtin-buildid-cache.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-buildid-list.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-c2c.c
|
perf c2c: Fix return type for histogram sorting comparision functions
|
2020-02-05 21:22:40 +00:00 |
|
builtin-config.c
|
|
|
|
builtin-data.c
|
|
|
|
builtin-diff.c
|
perf diff: Use llabs() with 64-bit values
|
2020-01-04 19:18:26 +01:00 |
|
builtin-evlist.c
|
perf evsel: Introduce evsel_fprintf.h
|
2019-09-25 16:26:34 -03:00 |
|
builtin-ftrace.c
|
|
|
|
builtin-help.c
|
|
|
|
builtin-inject.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-kallsyms.c
|
|
|
|
builtin-kmem.c
|
perf kmem: Fix memory leak in compact_gfp_flags()
|
2019-10-16 10:08:32 -03:00 |
|
builtin-kvm.c
|
perf tools: Propagate get_cpuid() error
|
2019-09-30 17:29:54 -03:00 |
|
builtin-list.c
|
perf list: Allow plurals for metric, metricgroup
|
2019-09-25 09:51:42 -03:00 |
|
builtin-lock.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-mem.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-probe.c
|
|
|
|
builtin-record.c
|
libperf: Add perf_evlist__poll() function
|
2019-09-25 09:51:49 -03:00 |
|
builtin-report.c
|
perf report: Fix incorrectly added dimensions as switch perf data file
|
2020-01-23 08:22:39 +01:00 |
|
builtin-sched.c
|
perf evsel: Introduce evsel_fprintf.h
|
2019-09-25 16:26:34 -03:00 |
|
builtin-script.c
|
perf script: Fix --reltime with --time
|
2020-01-23 08:23:01 +01:00 |
|
builtin-stat.c
|
libperf: Move 'sample_id' from 'struct evsel' to 'struct perf_evsel'
|
2019-09-25 09:51:47 -03:00 |
|
builtin-timechart.c
|
perf session: Return error code for perf_session__new() function on failure
|
2019-09-20 15:58:11 -03:00 |
|
builtin-top.c
|
perf evsel: Move config terms to a separate header
|
2019-09-25 16:26:40 -03:00 |
|
builtin-trace.c
|
perf evsel: Introduce evsel_fprintf.h
|
2019-09-25 16:26:34 -03:00 |
|
builtin-version.c
|
|
|
|
builtin.h
|
|
|
|
check-headers.sh
|
tools headers uapi: Sync linux/fs.h with the kernel sources
|
2019-09-30 17:29:22 -03:00 |
|
command-list.txt
|
|
|
|
CREDITS
|
|
|
|
design.txt
|
|
|
|
Makefile
|
|
|
|
Makefile.config
|
perf build: Add detection of java-11-openjdk-devel package
|
2019-09-25 16:26:41 -03:00 |
|
Makefile.perf
|
libtraceevent: Move traceevent plugins in its own subdirectory
|
2019-09-25 09:51:43 -03:00 |
|
MANIFEST
|
|
|
|
perf-archive.sh
|
|
|
|
perf-completion.sh
|
|
|
|
perf-read-vdso.c
|
|
|
|
perf-sys.h
|
perf tools: Make usage of test_attr__* optional for perf-sys.h
|
2019-10-31 21:38:41 +01:00 |
|
perf-with-kcore.sh
|
|
|
|
perf.c
|
libperf: Merge libperf_set_print() into libperf_init()
|
2019-09-25 09:51:49 -03:00 |
|
perf.h
|
|
|