perf sched timehist: Fix use of CPU list with summary option
authorDavid Ahern <dsahern@kernel.org>
Mon, 17 Aug 2020 17:09:42 +0000 (11:09 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:14 +0000 (19:14 +0200)
commit06a1d6e334b0a36edcc52d8841a71674af6640e6
tree1a63b2d676bd538c6ff7f54553dca6d3bd6ea510
parentb1c9e29c933e06b54ff2ffce634ba7806cea8a62
perf sched timehist: Fix use of CPU list with summary option

[ Upstream commit a74eaf1605d42391c2357a70e94e5a2c7780fea9 ]

Do not update thread stats or show idle summary unless CPU is in the
list of interest.

Fixes: c30d630d1bcfad8d ("perf sched timehist: Add support for filtering on CPU")
Signed-off-by: David Ahern <dsahern@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20200817170943.1486-1-dsahern@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/builtin-sched.c