Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933149AbbLGVCb (ORCPT ); Mon, 7 Dec 2015 16:02:31 -0500 Received: from gate.crashing.org ([63.228.1.57]:34613 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932813AbbLGVCa (ORCPT ); Mon, 7 Dec 2015 16:02:30 -0500 Message-ID: <1449522135.21036.11.camel@kernel.crashing.org> Subject: Re: [PATCH 2/2] powerpc: tracing: don't trace hcalls on offline CPUs From: Benjamin Herrenschmidt To: Steven Rostedt , Denis Kirjanov Cc: Michael Ellerman , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Date: Tue, 08 Dec 2015 08:02:15 +1100 In-Reply-To: <20151207155224.2a8d71dd@gandalf.local.home> References: <1448389419-5296-1-git-send-email-kda@linux-powerpc.org> <1448389419-5296-2-git-send-email-kda@linux-powerpc.org> <20151207155224.2a8d71dd@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.2 (3.18.2-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 554 Lines: 16 On Mon, 2015-12-07 at 15:52 -0500, Steven Rostedt wrote: > > +     TP_CONDITION(cpu_online(smp_processor_id())), > > + This should probably be some kind of __raw version though, hcalls can be called in contexts where the debug stuff in smp_processor_id() isn't safe (or preempt enabled). Cheers, Ben. -- 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/