From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756095AbaCEBTb (ORCPT ); Tue, 4 Mar 2014 20:19:31 -0500 Received: from ozlabs.org ([203.10.76.45]:50333 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753299AbaCEBTa (ORCPT ); Tue, 4 Mar 2014 20:19:30 -0500 Message-ID: <1393982366.13402.0.camel@concordia> Subject: Re: [PATCH v3 03/11] perf: provide a common perf_event_nop_0() for use with .event_idx From: Michael Ellerman To: Cody P Schafer Cc: Linux PPC , Arnaldo Carvalho de Melo , Ingo Molnar , Paul Mackerras , Peter Zijlstra , Peter Zijlstra , LKML , scottwood@freescale.com Date: Wed, 05 Mar 2014 12:19:26 +1100 In-Reply-To: <53157A45.4080600@linux.vnet.ibm.com> References: <20140304051936.97CBF2C020A@ozlabs.org> <53157A45.4080600@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2014-03-03 at 23:01 -0800, Cody P Schafer wrote: > On 03/03/2014 09:19 PM, Michael Ellerman wrote: > > On Thu, 2014-27-02 at 21:04:56 UTC, Cody P Schafer wrote: > >> Rather an having every pmu that needs a function that just returns 0 for > >> .event_idx define their own copy, reuse the one in kernel/events/core.c. > >> > >> Rename from perf_swevent_event_idx() because we're no longer using it > >> for just software events. Naming is based on the perf_pmu_nop_*() > >> functions. > > > > You could just use perf_pmu_nop_int() directly. > > No, .event_idx needs something that takes a (struct perf_event *), > perf_pmu_nop_int() takes a (struct pmu *). Yeah, duh. cheers