Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbaFPNQX (ORCPT ); Mon, 16 Jun 2014 09:16:23 -0400 Received: from smtprelay4.synopsys.com ([198.182.44.111]:43978 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383AbaFPNQW convert rfc822-to-8bit (ORCPT ); Mon, 16 Jun 2014 09:16:22 -0400 From: Vineet Gupta To: Vince Weaver CC: "linux-kernel@vger.kernel.org" , "Peter Zijlstra" , Ingo Molnar Subject: Re: [PATCH 1/6] arc,perf: Use common PMU interrupt disabled code Thread-Topic: [PATCH 1/6] arc,perf: Use common PMU interrupt disabled code Thread-Index: AQHPiF51r05p/Ov7REqcqqblhDg26Q== Date: Mon, 16 Jun 2014 13:16:12 +0000 Message-ID: References: Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.196.93] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 15 June 2014 11:25 AM, Vince Weaver wrote: > Transition to using the new generic PERF_PMU_CAP_NO_INTERRUPT method for > failing a sampling event when no PMU interrupt is available. > > Signed-off-by: Vince Weaver Acked-by: Vineet Gupta Thx, -Vineet > > diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c > index 63177e4..b9a5685 100644 > --- a/arch/arc/kernel/perf_event.c > +++ b/arch/arc/kernel/perf_event.c > @@ -99,10 +99,6 @@ 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) > @@ -298,6 +294,9 @@ static int arc_pmu_device_probe(struct platform_device *pdev) > .read = arc_pmu_read, > }; > > + /* ARC 700 PMU does not support sampling events */ > + arc_pmu->pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT; > + > ret = perf_pmu_register(&arc_pmu->pmu, pdev->name, PERF_TYPE_RAW); > > return ret; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/