[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20101018183843.GA22254@ghostprotocols.net>
Date: Mon, 18 Oct 2010 16:38:43 -0200
From: Arnaldo Carvalho de Melo <acme@...radead.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Clark Williams <williams@...hat.com>, Ingo Molnar <mingo@...e.hu>,
Peter Zijlstra <peterz@...radead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-rt-users@...r.kernel.org
Subject: [PATCH tip/rt/head] perf: Mark software events as irqsafe
From: Peter Zijlstra <peterz@...radead.org>
Noticed while using 'perf top' on a machine without a supported PMU on
2.6.33.7-rt29, when top falls back to using the "cpu-clock" software
event.
Reproduced on other machines where the problem was masked due to the
existence and use of hardware events, by explicitely asking for a
software event using:
perf top -e cpu-clock
Signed-off-by: Peter Zijlstra <peterz@...radead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@...radead.org>
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 6dfaf5b..b9fbc17 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -4238,6 +4238,7 @@ static void perf_swevent_start_hrtimer(struct perf_event *event)
struct hw_perf_event *hwc = &event->hw;
hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
+ hwc->hrtimer.irqsafe = 1;
hwc->hrtimer.function = perf_swevent_hrtimer;
if (hwc->sample_period) {
u64 period;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists