]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
perf trace: Do not process PERF_RECORD_LOST twice
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 30 Mar 2016 19:51:17 +0000 (16:51 -0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 10:36:52 +0000 (12:36 +0200)
commit1ed83c60bcf8e5d3f83f1b789ea2f7b9e69335bc
tree52fa3bbad6c73cfc2df6e71a6a7712bfc6eab5d4
parente7d236ed01a573420577ad9fc78c29d8846cccfc
perf trace: Do not process PERF_RECORD_LOST twice

BugLink: http://bugs.launchpad.net/bugs/1705238
commit 3ed5ca2efff70e9f589087c2013789572901112d upstream.

We catch this record to provide a visual indication that events are
getting lost, then call the default method to allow extra logging shared
with the other tools to take place.

This extra logging was done twice because we were continuing to the
"default" clause where machine__process_event() will end up calling
machine__process_lost_event() again, fix it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-wus2zlhw3qo24ye84ewu4aqw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
tools/perf/builtin-trace.c