[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171204145158.dgay4w6dqjrrzdu6@hirez.programming.kicks-ass.net>
Date: Mon, 4 Dec 2017 15:51:58 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Song Liu <songliubraving@...com>
Cc: rostedt@...dmis.org, mingo@...hat.com, davem@...emloft.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
daniel@...earbox.net, kernel-team@...com
Subject: Re: [PATCH v3 3/6] perf: implement pmu perf_kprobe
On Thu, Nov 30, 2017 at 03:50:20PM -0800, Song Liu wrote:
> diff --git a/kernel/events/core.c b/kernel/events/core.c
> index 494eca1..49bbf46 100644
> --- a/kernel/events/core.c
> +++ b/kernel/events/core.c
> static inline void perf_tp_register(void)
> {
> perf_pmu_register(&perf_tracepoint, "tracepoint", PERF_TYPE_TRACEPOINT);
> + perf_pmu_register(&perf_kprobe, "kprobe", -1);
Should we maybe not register this PMU when !KPROBE_EVENTS ? That looks
to save a bunch of #ifdeffery later on.
> }
Powered by blists - more mailing lists