Revert "perf: Handle stopped state with tracepoints"

This reverts commit 6f197b7330, which was
originally commit a0f7d0f7fc upstream.

This breaks the build, thanks to Jiri Slaby for pointing this out.

Reported-by: Jiri Slaby <jslaby@suse.cz>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman 2011-03-24 08:01:34 -07:00
parent da1785bfc8
commit 2ce87b8698

View File

@ -4167,8 +4167,6 @@ static void tp_perf_event_destroy(struct perf_event *event)
static const struct pmu *tp_perf_event_init(struct perf_event *event)
{
if (event->hw.state & PERF_HES_STOPPED)
return 0;
/*
* Raw tracepoint data is a severe data leak, only allow root to
* have these.