Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4886213imm; Tue, 7 Aug 2018 08:57:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfPaiIeip5RXup13m7ef9O8RszJC3qDsNEutYFHOn7HRaAcAP+VBlAhGxrEYqT2QLDZa1BI X-Received: by 2002:a62:f0d:: with SMTP id x13-v6mr22130126pfi.123.1533657473877; Tue, 07 Aug 2018 08:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533657473; cv=none; d=google.com; s=arc-20160816; b=aHgtFYAX6SFdTCo8J8Hy8tzGVdrlRC9aAuVGUhwxJMsQaL+oYfvEy0nezQAIvNqjU0 dNxkBNKaOsI8DbDRtQeeyDtOEWKkmV1YoV7UlmfOp2eqQWlnxZJeddwYjpnovSmbLO/i i7xAcINIa2afCN/2pTTfLP2e69GohJo3S34F9n9Yxq6gVv6amJUsrEl9Pu9RoJ9xjxss ZMfmPVcNp6daJkGk+pA4wvBlyamXpFWtfaEALZGIJZYZEMiu6KeAiNbMaNJDXiYCjbKt OjXVZ9ujPjxR9F37JmVXCkH4rWmvuEEdjYpKVFt/8sssz8K9OcmE65CJLAtvMsT8jC02 lfyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=49QhjOptnE6FYh7HZTnbm5T+qlL2Z7m8kanSDJHZEyg=; b=lYeSnlJmKMZnB5+D4tnh9pw83bV3mFY2yugg5Alv2PPGa/wrBPWcDJrCWmhzYflC+0 mBhzeQXEj/LfEZoYZ752Gml1Q2jsxFZaGEh9JUUdh3glaqSxbPhIjmpCyhkHOm9o/94/ pxux4MeEa7H9rabPA0IRB/pG7BCqXZ5jG3JClyAzi/toIsBrzJ2qoi+RQ2200SDRpMln 2Iq4vKZrmpo4eW4Pe34CFPBEc9FKLJYgVB2tmWp3NP2E59to0NUdMsxcrkJxqArfMEFu b3NH0fuQ4bLQe5B/elFmn0RQ0sfRJMuQ8G8jeUQkC7Q2CZzc0euKD1mWS8iJ5sLSCWnL /7/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FTKxQ3Rp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si1778303pgf.312.2018.08.07.08.57.39; Tue, 07 Aug 2018 08:57:53 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=FTKxQ3Rp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389235AbeHGPr7 (ORCPT + 99 others); Tue, 7 Aug 2018 11:47:59 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:45547 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbeHGPr6 (ORCPT ); Tue, 7 Aug 2018 11:47:58 -0400 Received: by mail-yw1-f65.google.com with SMTP id 139-v6so4910458ywg.12 for ; Tue, 07 Aug 2018 06:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=49QhjOptnE6FYh7HZTnbm5T+qlL2Z7m8kanSDJHZEyg=; b=FTKxQ3RpA33wrjc2PfzkQyQyQhSZKST12UqIT7RBJ5WGvKBbFX6A9tp5b9PoMc/IXX Sp4j+2rM3KLu1Hw7zDh+msWsnrUYVugPEVlLsn9CtqrUCv65rgMDgze1+OPUdgXGIr4P jQhlWA8jj1Kw4KsCcvgUYeXBTs6WGbtp3rJlPpuClpqL0xEC+IHoTPJFK43O8kwLTCBu /o8F2dN5KM6b1cKGhJnwRuVzlN7cp2w/RRoqGQGwWaWScvH5lV3nGTSo0bky0cTU7r8+ e709x8EGc/1k6KT5w+LMRJiRQFzw933AkOODiJHpgsmZauZevcOOmKE/WA0yevJ5fazQ 0fhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=49QhjOptnE6FYh7HZTnbm5T+qlL2Z7m8kanSDJHZEyg=; b=niLVXfe/Szt7tD0cH4/aDTwgERvptMSvtwcTtk4voX4Vhr6v2csyZHnBX6Ya3jtAf1 2WFUm1gkGkdHoBPXyaYGdXrJuhhhBec4Lm4kNYPwWowUpxL8WSY1vJmR/UNkvwOv8wzw VxrtCEf7kNKIllZMx78SZVn+NsRbmJjYoabM3G7KxLtDLJ+3vM48ngsx82voITZbQOwY Ia1+Fzn7KqqTH1tVn4sTe5Cs8iXiIalum5GZDC98KCUNGe4PI4zTmBgpc2cY0MUqiDEU NSyYsyKTBUykdwGDS/nlaYEGrvkRZ5pS6AvYpl3CwGIuMEaavnBG9wE9hOHJpDs+40BQ 30PQ== X-Gm-Message-State: AOUpUlEhk/ZsIlXBa3Qq53HEC0JKLyLOg9Tt5gwVFkVxkANPjkmbIElW OXjhMlh0KoJfM6hcnJe5pPCGW3isfxgm1e+cc6aCwlSQUFM= X-Received: by 2002:a81:1d7:: with SMTP id 206-v6mr10118946ywb.223.1533648816142; Tue, 07 Aug 2018 06:33:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:bfce:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 06:33:35 -0700 (PDT) In-Reply-To: <20180806214300.13e63523@gandalf.local.home> References: <20180730222423.196630-1-joel@joelfernandes.org> <20180730222423.196630-4-joel@joelfernandes.org> <20180806155058.5ee875f4@gandalf.local.home> <20180806214300.13e63523@gandalf.local.home> From: Joel Fernandes Date: Tue, 7 Aug 2018 06:33:35 -0700 Message-ID: Subject: Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage To: Steven Rostedt Cc: Joel Fernandes , LKML , "Cc: Android Kernel" , Boqun Feng , Byungchul Park , Ingo Molnar , Masami Hiramatsu , Mathieu Desnoyers , Namhyung Kim , Paul McKenney , Peter Zijlstra , Thomas Glexiner , Tom Zanussi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 6, 2018 at 6:43 PM, Steven Rostedt wrote: > On Mon, 6 Aug 2018 17:43:19 -0700 > Joel Fernandes wrote: > >> On Mon, Aug 6, 2018 at 12:50 PM, Steven Rostedt wrote: >> > >> > With this patch applied, I'm constantly getting lockdep errors. Instead >> > of doing a full revert of the patch, I did this, which makes all those >> > errors go away. I may apply this for now, and we can revisit having >> > lockdep use the tracepoint code. But since it's currently always >> > enabled, I'm thinking of just leaving this as is. The macros are still >> > clean from Joel's patch. >> > >> > Thoughts? >> >> I like your patch. Thanks a lot for doing this.. It keeps most of the >> benefits of my patch while avoiding the issues with lockdep. I agree >> we can look at the remaining lockdep issue after. There were several >> lockdep issues with this patch that I fixed over the the months, but >> there's still the one that Masami reported that I believe you're also >> seeing. Once I'm back I'll work on figuring that one out. >> >> Could you pull in the fixes to the other issues I posted though? With >> that we should be good. >> https://lore.kernel.org/patchwork/patch/971104/ >> https://lore.kernel.org/patchwork/patch/971829/ >> > > I already had these applied when I created this patch ;-) > > Thanks, I'll add it. Thanks, also one more thing I noticed in your patch, lockdep_hardirqs_off needs to be called before all other probes but you're calling it after. This is why I registered it with INT_MAX: register_trace_prio_irq_disable(lockdep_hardirqs_off, NULL, INT_MAX); Without it you may get annotation warnings. Thanks, - Joel