perf top: Display slow reader warning when droping samples
authorJiri Olsa <jolsa@kernel.org>
Mon, 19 Nov 2018 10:12:01 +0000 (11:12 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:58:40 +0000 (14:58 -0300)
commitd8590430fb1e70132f1d330d6bbab7b943b35c3c
tree15eb2c2d6a52f87647f2cb0a4a3d657b3ccf56d5
parent97f7e0b33db81fd821828390e9095771abe62816
perf top: Display slow reader warning when droping samples

Currently we display the "Too slow to read ring buffer.." helpline only
in the slow reader thread. This patch triggers it also when the
processing thread drops samples, because it has the same reason, which
is too many data on input.

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-bnev2mloavyurmgchcr3o24o@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c