From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4213DC3F2CD for ; Sun, 1 Mar 2020 18:23:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19E2D246B9 for ; Sun, 1 Mar 2020 18:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbgCASXI (ORCPT ); Sun, 1 Mar 2020 13:23:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:35774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgCASXI (ORCPT ); Sun, 1 Mar 2020 13:23:08 -0500 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D8F0124692; Sun, 1 Mar 2020 18:23:06 +0000 (UTC) Date: Sun, 1 Mar 2020 13:23:05 -0500 From: Steven Rostedt To: Andy Lutomirski Cc: Thomas Gleixner , Peter Zijlstra , LKML , X86 ML , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann , "Paul E. McKenney" Subject: Re: [patch 4/8] x86/entry: Move irq tracing on syscall entry to C-code Message-ID: <20200301132305.68729da8@oasis.local.home> In-Reply-To: References: <87imjofkhx.fsf@nanos.tec.linutronix.de> <87d09wf6dw.fsf@nanos.tec.linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 1 Mar 2020 08:00:01 -0800 Andy Lutomirski wrote: > But the DEFINE_EVENT doesn't have the "_rcuidle" part. And that's > where I got lost in the macro maze. I looked at the gcc asm output, > and there is, indeed: > > # ./include/trace/events/preemptirq.h:40: > DEFINE_EVENT(preemptirq_template, irq_enable, > > with a bunch of asm magic that looks like it's probably a tracepoint. > I still don't quite see where the "_rcuidle" went. See the code in include/linux/tracepoint.h and search for "rcuidle" there. All defined trace events get a "_rcuidle" version, but as it is declared a static inline, then they only show up if they are used. -- Steve