linux_dsm_epyc7002/tools/perf
Namhyung Kim 820bc81f4c perf tools: Account entry stats when it's added to the output tree
Currently, accounting each sample is done in multiple places - once
when adding them to the input tree, other when adding them to the
output tree.  It's not only confusing but also can cause a subtle
problem since concurrent processing like in perf top might see the
updated stats before adding entries into the output tree - like seeing
more (blank) lines at the end and/or slight inaccurate percentage.

To fix this, only account the entries when it's moved into the output
tree so that they cannot be seen prematurely.  There're some
exceptional cases here and there - they should be addressed separately
with comments.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1398327843-31845-7-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
2014-04-24 16:32:15 +02:00
..
arch
bench Merge branch 'perf-core-for-mingo' into perf/urgent 2014-04-14 16:45:39 +02:00
config Merge branch 'perf-core-for-mingo' into perf/urgent 2014-04-14 16:45:39 +02:00
Documentation perf diff: Add --percentage option 2014-04-16 17:16:03 +02:00
python
scripts
tests perf tools: Fix double free in perf test 21 (code-reading.c) 2014-04-15 13:57:14 +02:00
ui perf ui/tui: Add 'F' hotkey to toggle percentage output 2014-04-16 17:16:04 +02:00
util perf tools: Account entry stats when it's added to the output tree 2014-04-24 16:32:15 +02:00
.gitignore
builtin-annotate.c perf tools: Account entry stats when it's added to the output tree 2014-04-24 16:32:15 +02:00
builtin-bench.c perf bench: Fix segfault at the end of an 'all' execution 2014-04-14 12:55:53 +02:00
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf tools: Account entry stats when it's added to the output tree 2014-04-24 16:32:15 +02:00
builtin-evlist.c
builtin-help.c
builtin-inject.c
builtin-kmem.c perf kmem: Utilize the new generic cpunode_map 2014-04-22 17:39:20 +02:00
builtin-kvm.c perf kvm: introduce --list-cmds for use by scripts 2014-03-14 18:08:41 -03:00
builtin-list.c
builtin-lock.c perf lock: Introduce --list-cmds for use by scripts 2014-04-16 17:16:04 +02:00
builtin-mem.c perf mem: Introduce --list-cmds for use by scripts 2014-04-16 17:16:04 +02:00
builtin-probe.c
builtin-record.c
builtin-report.c perf tools: Account entry stats when it's added to the output tree 2014-04-24 16:32:15 +02:00
builtin-sched.c perf sched: Introduce --list-cmds for use by scripts 2014-04-16 17:16:05 +02:00
builtin-script.c
builtin-stat.c perf stat: Initialize statistics correctly 2014-04-14 12:56:06 +02:00
builtin-timechart.c perf symbols: Record the reason for filtering an address_location 2014-03-18 18:16:57 -03:00
builtin-top.c perf top: Add --percentage option 2014-04-16 17:16:03 +02:00
builtin-trace.c
builtin.h
command-list.txt
CREDITS
design.txt perf tools: Update some code references in design.txt 2014-03-18 18:17:06 -03:00
Makefile
Makefile.perf perf tools: Instead of redirecting flex output, use -o 2014-04-15 13:57:21 +02:00
MANIFEST
perf-archive.sh
perf-completion.sh perf sched: Introduce --list-cmds for use by scripts 2014-04-16 17:16:05 +02:00
perf.c
perf.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2014-04-06 08:11:57 -07:00