From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shi, Yang" Subject: Re: -rt kernel just can show 8 perf events? Date: Thu, 4 Feb 2016 15:41:32 -0800 Message-ID: <56B3E1AC.2080209@linaro.org> References: <565E04D5.4000202@linaro.org> <20151211173616.GL6720@linutronix.de> <566B0E72.50608@linaro.org> <20160204151623.GB3381@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Arnaldo Carvalho de Melo , Steven Rostedt , linux-rt-users@vger.kernel.org To: Sebastian Andrzej Siewior Return-path: Received: from mail-oi0-f48.google.com ([209.85.218.48]:34342 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbcBDXlk (ORCPT ); Thu, 4 Feb 2016 18:41:40 -0500 Received: by mail-oi0-f48.google.com with SMTP id w5so30931881oie.1 for ; Thu, 04 Feb 2016 15:41:40 -0800 (PST) In-Reply-To: <20160204151623.GB3381@linutronix.de> Sender: linux-rt-users-owner@vger.kernel.org List-ID: On 2/4/2016 7:16 AM, Sebastian Andrzej Siewior wrote: > * Shi, Yang | 2015-12-11 09:57:06 [-0800]: > >> On 12/11/2015 9:36 AM, Sebastian Andrzej Siewior wrote: >>> And 4.1.12 (without -rt13) is not having this kind of problem? >> >> No. mainline 4.1.12 works well. > > The same thing here. But I get this: > > Performance counter stats for 'tar tJ': > > 144,407 cs > 16,733 page-faults > 16,732 minor-faults > 1 major-faults > 805,335 iTLB-load-misses (24.83%) > 6,606,698 dTLB-load-misses (24.63%) > 3,734,425,072 branches (37.35%) > 228,660,856 L1-dcache-prefetches (37.06%) > 4,564,273 L1-icache-prefetches (49.68%) > 399,365,890 branch-misses # 10.69% of all branches (62.63%) > 79,278,129 cache-misses (62.96%) > 30,825,564,763 cycles (50.79%) > > 8.705696429 seconds time elapsed > > once I apply this chunk: Thanks. I will have a try with the patch soon. Yang > > diff --git a/kernel/events/core.c b/kernel/events/core.c > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -802,6 +802,7 @@ static void __perf_mux_hrtimer_init(struct perf_cpu_context *cpuctx, int cpu) > raw_spin_lock_init(&cpuctx->hrtimer_lock); > hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); > timer->function = perf_mux_hrtimer_handler; > + timer->irqsafe = 1; > } > > static int perf_mux_hrtimer_restart(struct perf_cpu_context *cpuctx) > >> Yang > > Sebastian >