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 1A5DAC3F2CD for ; Sun, 1 Mar 2020 18:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E81C120857 for ; Sun, 1 Mar 2020 18:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbgCASUm (ORCPT ); Sun, 1 Mar 2020 13:20:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:34704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgCASUl (ORCPT ); Sun, 1 Mar 2020 13:20:41 -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 30B77246CD; Sun, 1 Mar 2020 18:20:40 +0000 (UTC) Date: Sun, 1 Mar 2020 13:20:38 -0500 From: Steven Rostedt To: Thomas Gleixner Cc: Andy Lutomirski , Peter Zijlstra , Andy Lutomirski , LKML , x86@kernel.org, Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann , "Paul E. McKenney" , Joel Fernandes Subject: Re: [patch 4/8] x86/entry: Move irq tracing on syscall entry to C-code Message-ID: <20200301132038.7f0def72@oasis.local.home> In-Reply-To: <87d09wf6dw.fsf@nanos.tec.linutronix.de> 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, 01 Mar 2020 16:21:15 +0100 Thomas Gleixner wrote: > Andy Lutomirski writes: > >> On Mar 1, 2020, at 2:16 AM, Thomas Gleixner wrote: > >> Ok, but for the time being anything before/after CONTEXT_KERNEL is unsafe > >> except trace_hardirq_off/on() as those trace functions do not allow to > >> attach anything AFAICT. > > > > Can you point to whatever makes those particular functions special? I > > failed to follow the macro maze. > > Those are not tracepoints and not going through the macro maze. See > kernel/trace/trace_preemptirq.c For the latency tracing, they do call into the tracing infrastructure, not just lockdep. And Joel Fernandez did try to make these into trace events as well. -- Steve