Andi Kleen
44d49a6002
perf stat: Support metrics in --per-core/socket mode
Enable metrics printing in --per-core / --per-socket mode. We need to
save the shadow metrics in a unique place. Always use the first CPU in
the aggregation. Then use the same CPU to retrieve the shadow value
later.
Example output:
% perf stat --per-core -a ./BC1s
Performance counter stats for 'system wide':
S0-C0 2 2966.020381 task-clock (msec) # 2.004 CPUs utilized (100.00%)
S0-C0 2 49 context-switches # 0.017 K/sec (100.00%)
S0-C0 2 4 cpu-migrations # 0.001 K/sec (100.00%)
S0-C0 2 467 page-faults # 0.157 K/sec
S0-C0 2 4,599,061,773 cycles # 1.551 GHz (100.00%)
S0-C0 2 9,755,886,883 instructions # 2.12 insn per cycle (100.00%)
S0-C0 2 1,906,272,125 branches # 642.704 M/sec (100.00%)
S0-C0 2 81,180,867 branch-misses # 4.26% of all branches
S0-C1 2 2965.995373 task-clock (msec) # 2.003 CPUs utilized (100.00%)
S0-C1 2 62 context-switches # 0.021 K/sec (100.00%)
S0-C1 2 8 cpu-migrations # 0.003 K/sec (100.00%)
S0-C1 2 281 page-faults # 0.095 K/sec
S0-C1 2 6,347,290 cycles # 0.002 GHz (100.00%)
S0-C1 2 4,654,156 instructions # 0.73 insn per cycle (100.00%)
S0-C1 2 947,121 branches # 0.319 M/sec (100.00%)
S0-C1 2 37,322 branch-misses # 3.94% of all branches
1.480409747 seconds time elapsed
v2: Rebase to older patches
v3: Document shadow cpus. Fix aggr_get_id argument. Fix -A shadows (Jiri)
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
|
2016-03-03 11:10:36 -03:00 |
| .. |
|
arch
|
perf tools: Rename parse_events__free_terms() to parse_events_terms__delete()
|
2016-02-12 17:09:17 -03:00 |
|
bench
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
config
|
perf build: Add libcrypto feature detection
|
2016-02-05 09:46:45 -03:00 |
|
Documentation
|
perf top: Add --hierarchy option
|
2016-02-24 20:21:15 -03:00 |
|
jvmti
|
perf jvmti: improve error message in Makefile
|
2016-02-25 10:43:28 -03:00 |
|
python
|
perf python: Support the PERF_RECORD_SWITCH event
|
2015-10-07 19:41:50 -03:00 |
|
scripts
|
perf python scripting: Append examples to err msg about audit-libs-python
|
2016-02-12 11:30:27 -03:00 |
|
tests
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
trace/strace/groups
|
perf trace: Add read/write to the file group
|
2015-09-04 13:22:06 -03:00 |
|
ui
|
perf report: Left align dynamic entries in hierarchy
|
2016-02-26 18:37:06 -03:00 |
|
util
|
perf stat: Support metrics in --per-core/socket mode
|
2016-03-03 11:10:36 -03:00 |
|
.gitignore
|
perf tools: Add Intel PT instruction decoder
|
2015-08-17 11:11:36 -03:00 |
|
Build
|
perf tools: Set and pass DOCDIR to builtin-report.c
|
2016-01-12 12:42:07 -03:00 |
|
builtin-annotate.c
|
perf hists: Introduce perf_evsel__output_resort function
|
2016-02-03 11:13:11 -03:00 |
|
builtin-bench.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-buildid-cache.c
|
perf tools: Move timestamp creation to util
|
2016-01-29 17:30:06 -03:00 |
|
builtin-buildid-list.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-config.c
|
perf config: Add '--system' and '--user' options to select which config file is used
|
2016-02-12 10:54:46 -03:00 |
|
builtin-data.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-diff.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
builtin-evlist.c
|
perf evlist: Add --trace-fields option to show trace fields
|
2016-01-08 14:23:02 -03:00 |
|
builtin-help.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
builtin-inject.c
|
perf inject: Add jitdump mmap injection support
|
2016-02-05 09:46:45 -03:00 |
|
builtin-kmem.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
builtin-kvm.c
|
perf kvm/powerpc: Port perf kvm stat to powerpc
|
2016-01-29 17:49:54 -03:00 |
|
builtin-list.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-lock.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-mem.c
|
perf mem: Introduce perf_mem_events__name function
|
2016-02-24 10:11:52 -03:00 |
|
builtin-probe.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-record.c
|
perf record: Ensure return non-zero rc when mmap fail
|
2016-03-03 11:10:36 -03:00 |
|
builtin-report.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
builtin-sched.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-script.c
|
perf script: Remove duplicated code and needless script_spec__findnew()
|
2016-02-25 16:14:33 -03:00 |
|
builtin-stat.c
|
perf stat: Support metrics in --per-core/socket mode
|
2016-03-03 11:10:36 -03:00 |
|
builtin-timechart.c
|
perf subcmd: Create subcmd library
|
2015-12-17 14:27:14 -03:00 |
|
builtin-top.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
builtin-trace.c
|
perf trace: Check and discard not only 'nr' but also '__syscall_nr'
|
2016-02-29 11:34:28 -03:00 |
|
builtin-version.c
|
perf tools: Move cmd_version() to builtin-version.c
|
2015-12-09 13:42:03 -03:00 |
|
builtin.h
|
perf tools: Add 'perf config' command
|
2015-11-23 18:31:24 -03:00 |
|
command-list.txt
|
perf tools: Do not show trace command if it's not compiled in
|
2016-01-08 12:46:17 -03:00 |
|
CREDITS
|
|
|
|
design.txt
|
|
|
|
Makefile
|
perf build tests: Do parallell builds with 'build-test'
|
2016-02-04 15:57:00 -03:00 |
|
Makefile.perf
|
perf build: Add EXTRA_LDFLAGS option to makefile
|
2016-02-12 11:30:20 -03:00 |
|
MANIFEST
|
perf tools: Add missing sources to perf's MANIFEST
|
2016-01-11 12:09:25 -03:00 |
|
perf-archive.sh
|
|
|
|
perf-completion.sh
|
|
|
|
perf-read-vdso.c
|
|
|
|
perf-sys.h
|
|
|
|
perf-with-kcore.sh
|
|
|
|
perf.c
|
perf config: Bring perf_default_config to the very beginning at main()
|
2016-02-26 19:49:16 -03:00 |
|
perf.h
|
perf record: Add --all-user/--all-kernel options
|
2016-02-18 10:48:44 -03:00 |