Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1478600ybf; Sun, 1 Mar 2020 10:24:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwFaxNp7elTYo5OxE6KfzDd8oBiGxDUhpTjdEp0CLOnILluTGSZ3lpVrgETqoeS6LAejc0o X-Received: by 2002:a9d:7613:: with SMTP id k19mr11066470otl.144.1583087070042; Sun, 01 Mar 2020 10:24:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583087070; cv=none; d=google.com; s=arc-20160816; b=fTyld/j+SntJI10QY7wHqVsOXEJjoVvKzE4XIf7MGxxYdlnp7/fgjuvH6JVIe8Dw1A Wd2IDXSCeFOY4ugTfXEPhU0hG9c9lxW+UPEm1hRnNNM4eyCqKjKSmPjUER+5WU5AVQoW +UXwmbGfvw/ynXpObEgyvhOCSa5p/2ujxKjV5uflsJR4o4rVBYNsDvt4JfW2coaZjbpz ANC28h3BglZu6r1upBntLHO+aNiU3oBW9OgGEkaD5A+thyRZV7fGxJq86MqhdTJPPBwz Et5nRGcA+wxW/zs4g4EQ2VnZEX6cjrbJ5i5H1GZBnKuTt+Evac8PeIVqNUxDwxeQEbFE J+hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=H3arFitZ4WGs64cvf2O8DDy/0mguzcR1AFQy0yAXZaA=; b=0LkZUbgXMbXOJK2pL8GNuAVaaHL7zOhp0TnkZ+ps4kWnhJNWIkf9en1iLO2PNAtCqN 8ShzqvEzdH8rBQFWGNs8HLI4XEzUb0fqhge5oxB4/lC4netAW8cN/6CunyKb90Ej9bFy p58cZB9PIxlAtNKE0QJbTYFBelSdNCwa7EQcjRnBWELJvQ7BcWxG45YqcQBX3oC0a3Tm n4rom05L1XOBBbSUf6RpsiIFd5faRGdp7B0kSRsiIZUMhITn4uH2NmfY27ZDazT2T3I6 qooZmZT1ocjYDKXWbbqKcDEixG+XneOYUnvA+mFgn5T2NlgUi6NfqEiLif7nw8ziY345 mgMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si5198745otq.122.2020.03.01.10.24.16; Sun, 01 Mar 2020 10:24:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbgCASXI (ORCPT + 99 others); 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