OSDN Git Service

perf top: Drop samples which are behind the refresh rate
authorJiri Olsa <jolsa@kernel.org>
Sun, 11 Nov 2018 18:52:06 +0000 (19:52 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:58:26 +0000 (14:58 -0300)
commitd63b9f6fea7613e2fdc8a5ef7e17ecc9cf24bf9d
tree831bc59ba4d241735b7e9c09854883f7bef1895c
parentc94cef4beb66d3e1f4ed0f3bf6c2663a9c3cf3c0
perf top: Drop samples which are behind the refresh rate

Drop samples from processing thread if they get behind the latest event
read from the kernel maps. If it gets behind more than the refresh rate
(-d option), drop the sample.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/n/tip-x533ra5c1pgofvbtsizzuydd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c