Received: by 10.192.165.148 with SMTP id m20csp4418978imm; Mon, 30 Apr 2018 18:47:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrruAl2Wg3Vj99AaLOmTgP+ZPWquWk8cal5TV+i158dKSs62R0BXJoAuCRI88VusHYf1bLU X-Received: by 2002:a17:902:8f8b:: with SMTP id z11-v6mr10806535plo.203.1525139236742; Mon, 30 Apr 2018 18:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525139236; cv=none; d=google.com; s=arc-20160816; b=ujO/3R/8G2bKk9iH1UAb7d2Smbc6WHqTKYdbQmbXjmkYrz2nNQQXdU+2kAKrMOxxcV hRCuP31TN5q5KDINqNMV7SNwMkeNJ9HpeBYmM5qb5PQwUlP5QWZKRJPowCx4JmupG+pA yH/LDGkWzp26XMftt+I4gLSIraq3cnfMkhZTAZHd0ob64C9g8QNZlPF/8jwU3hhFGmZJ c5FXkx9JDjLUP4PhrbVAz7cDL1oaFmKrBhhSgAz7M27KJGvsQdEVeqpJ6TTCxAa/Q3Km VTfSRy+idHk+JFJYDMlECjClsl+IjQvtZ0/FCzJ0hyuH9b8qxYW4iBABiKT/EDdQHaXO GXsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=btYC8tA2zD9pyCywEpAJI1Kht2kxiIYTkClgKSc0wxU=; b=tE6F42HZLkPNvkVL1S8qhwv4p0Vut+13bfIaWj7H3vXJMDVHacgFyp3N0gcXrTlMpi pnck3JUmGnTDcaPwwzaZdaOgmqv0jUI+/j6lkYprLgZEFWpGsl4slov+uEZa3JGZNcqr PJVk71UtRTyiRms+kO4EBTcwx4gX/diVQdVOTY3f2BjEFvu6Tsf1bokxm092Std7Eqw6 JjPNFNb7oNZ2FPMlI8K5aoVpJSNuG6y1HtdRc+bvkYsLclaF3eEryH70RbkknxPZaueu siZYpoomAkkb3zHMGRrDIIkJAUWT0Lm1eT+TX3mzz982DXdIODQSsunal9lEWN552EtF SPUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rcRb0WAE; 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 bb5-v6si4428164plb.355.2018.04.30.18.47.02; Mon, 30 Apr 2018 18:47:16 -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=rcRb0WAE; 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 S1752667AbeEABmV (ORCPT + 99 others); Mon, 30 Apr 2018 21:42:21 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:44932 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbeEABmU (ORCPT ); Mon, 30 Apr 2018 21:42:20 -0400 Received: by mail-pf0-f196.google.com with SMTP id q22so8133321pff.11 for ; Mon, 30 Apr 2018 18:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=btYC8tA2zD9pyCywEpAJI1Kht2kxiIYTkClgKSc0wxU=; b=rcRb0WAE2WeOLCz+DTLz6olqN+ErHQ3jCd5PBs8a6RLtysC9zJKVAn+es0XVCjzgjo MeiMtaCu/gciCpe2n2X5rcMqIcirG7c1QbhMWuEvWvdb1lWG2lXtmCUsqzoHL4XU/7rO 3fP+Bcfihjzc/QAEtzKoPaKy0Ir7hBf13ZGVE+aaC7UpK5M16g+ayoNIW7oTOTnE/3Ih EBMdv1/KTujLtEXpTwffI/tmYIOhEi0yfLu7VuQ9WXinPV+BSeJDmdtBJtCa3LOpFDvp qb6WqhSSA7t5EFazYW273n1iz2nq3scx7ElnxuBfOUR2qy3MnepeYk5hU5sYPb1Dk9Ln kqQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=btYC8tA2zD9pyCywEpAJI1Kht2kxiIYTkClgKSc0wxU=; b=IXTE09zuR9oryEPh9W9SN2if5wSeVTBwGu13oLLj4YgVu0qaAG5XXzHVuYmTP+pMUd q7H51qnorBl/4TXuCCpZXb83W+Kl3Hyl4zohmrjHo9hhVBIxDcDSDI1p+UkH54D/yHQL 0DjgRuFJYo5LFpnDvvA0zR5KkkN+m2cUf1a6kKmgIJQL7LHniEriSTc9bi0USgpL2K5W bkdI8lX9o4D7m/hpt4v0P+c2nGlV9atPFUE0q82jqkT9xeW77oHmOQRP1Ap0qTymAMQA vlwI1AJ8FKc5gaD9qtv7OVZkF7hN4gNItya5wGXEHE2WTjKEE9vtg6rtgY8r6J+ckKvO xazQ== X-Gm-Message-State: ALQs6tAcbKu58PaC/FHUnHu6RtW4cFCp+jMZXtGsuWhq9Trefv98vG8o ow8qnkrNCvFk2wdHPVDcIMX4cEJZUKo= X-Received: by 2002:a65:6216:: with SMTP id d22-v6mr11840071pgv.344.1525138939278; Mon, 30 Apr 2018 18:42:19 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id f21sm15149490pfa.106.2018.04.30.18.42.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Apr 2018 18:42:18 -0700 (PDT) From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Steven Rostedt , Peter Zilstra , Ingo Molnar , Mathieu Desnoyers , Tom Zanussi , Namhyung Kim , Thomas Glexiner , Boqun Feng , Paul McKenney , Frederic Weisbecker , Randy Dunlap , Masami Hiramatsu , Fenguang Wu , Baohong Liu , Vedang Patel , kernel-team@android.com Subject: [PATCH RFC v5 0/6] Centralize and unify usage of preempt/irq tracepoints Date: Mon, 30 Apr 2018 18:41:58 -0700 Message-Id: <20180501014204.67548-1-joelaf@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the next revision of preempt/irq tracepoint centralization and unified usage across the kernel [1]. The preempt/irq tracepoints exist but not everything in the kernel is using it. This makes things not work simultaneously (for ex, only either lockdep or irqsoff events can be used at a time). This series is an attempt to solve that, and also results in a nice clean up of kernel in general. Several ifdefs are simpler, and the design is more unified and better. Also as a result of this, we also speeded performance all rcuidle tracepoints since their handling is simpler. v5: - Fixed performance issues due to rcu-idle handling Joel Fernandes (5): softirq: reorder trace_softirqs_on to prevent lockdep splat srcu: Add notrace variant of srcu_dereference trace/irqsoff: Split reset into seperate functions tracepoint: Make rcuidle tracepoint callers use SRCU tracing: Centralize preemptirq tracepoints and unify their usage Paul E. McKenney (1): srcu: Add notrace variants of srcu_read_{lock,unlock} include/linux/ftrace.h | 11 +- include/linux/irqflags.h | 11 +- include/linux/lockdep.h | 8 +- include/linux/preempt.h | 2 +- include/linux/srcu.h | 22 +++ include/linux/tracepoint.h | 47 +++++- include/trace/events/preemptirq.h | 23 +-- init/main.c | 5 +- kernel/locking/lockdep.c | 35 ++--- kernel/sched/core.c | 2 +- kernel/softirq.c | 6 +- kernel/trace/Kconfig | 22 ++- kernel/trace/Makefile | 2 +- kernel/trace/trace_irqsoff.c | 235 +++++++++--------------------- kernel/trace/trace_preemptirq.c | 71 +++++++++ kernel/tracepoint.c | 10 +- 16 files changed, 283 insertions(+), 229 deletions(-) create mode 100644 kernel/trace/trace_preemptirq.c Cc: Steven Rostedt Cc: Peter Zilstra Cc: Ingo Molnar Cc: Mathieu Desnoyers Cc: Tom Zanussi Cc: Namhyung Kim Cc: Thomas Glexiner Cc: Boqun Feng Cc: Paul McKenney Cc: Frederic Weisbecker Cc: Randy Dunlap Cc: Masami Hiramatsu Cc: Fenguang Wu Cc: Baohong Liu Cc: Vedang Patel Cc: kernel-team@android.com Signed-off-by: Joel Fernandes -- 2.17.0.441.gb46fe60e1d-goog