mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] perf stat: fix segfault when closing events
@ 2017-04-28 11:47 Mark Rutland
  2017-04-28 11:47 ` [PATCH 1/2] perf evsel: add per{cpu,thread} close helpers Mark Rutland
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark Rutland @ 2017-04-28 11:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: acme, alexander.shishkin, ganapatrao.kulkarni, mark.rutland

Hi,

These patches fix a segfault seen in some cases when perf stat is exiting.

We don't balance opening/closing of events in all cases, and go out-of-bounds
when we close events. Full details in the patch 2 commit message.

Thanks,
Mark.

Mark Rutland (2):
  perf evsel: add per{cpu,thread} close helpers
  perf stat: balance opening/closing of events

 tools/perf/builtin-stat.c | 24 +++++++++++++++++++++++-
 tools/perf/util/evsel.c   | 26 ++++++++++++++++++++------
 tools/perf/util/evsel.h   |  4 ++++
 3 files changed, 47 insertions(+), 7 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-12  7:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 11:47 [PATCH 0/2] perf stat: fix segfault when closing events Mark Rutland
2017-04-28 11:47 ` [PATCH 1/2] perf evsel: add per{cpu,thread} close helpers Mark Rutland
2017-04-28 11:47 ` [PATCH 2/2] perf stat: balance opening/closing of events Mark Rutland
2017-05-23 10:04 ` [PATCH 0/2] perf stat: fix segfault when closing events Mark Rutland
2017-05-23 15:14   ` Ganapatrao Kulkarni
2017-06-09  4:33     ` Ganapatrao Kulkarni
2017-07-12  7:16       ` Ganapatrao Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®