Skip to content

Commit

Permalink
ARC: perf: ARC 700 PMU doesn't support sampling events
Browse files Browse the repository at this point in the history
The ARC 700 does not have an interrupt associated with it, and as
such it cannot trigger when a counter overflows. As the counters are
48 bit, it will usually take at least 100 days before a counter
overflows, so for mere counting of events, there is no problem.
Sampling is not supported though.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Mischa Jonker authored and Vineet Gupta committed Nov 15, 2013
1 parent d6a7f73 commit 230c4aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arc/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ static int arc_pmu_event_init(struct perf_event *event)
struct hw_perf_event *hwc = &event->hw;
int ret;

/* ARC 700 PMU does not support sampling events */
if (is_sampling_event(event))
return -ENOENT;

switch (event->attr.type) {
case PERF_TYPE_HARDWARE:
if (event->attr.config >= PERF_COUNT_HW_MAX)
Expand Down

0 comments on commit 230c4aa

Please sign in to comment.