Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751580AbdICIvE (ORCPT ); Sun, 3 Sep 2017 04:51:04 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:33783 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbdICIvD (ORCPT ); Sun, 3 Sep 2017 04:51:03 -0400 X-Google-Smtp-Source: ADKCNb48lppQ3Zfn9gFTK407HRmbtAYGetMwOXm8gcGA3tvPqhsqhwLimXpHSKcKutUVYp5KAGaUMw== From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Steven Rostedt , kernel-team@android.com Subject: [PATCH 0/2] tracing: Add critical section event support Date: Sun, 3 Sep 2017 01:50:49 -0700 Message-Id: <20170903085051.6348-1-joelaf@google.com> X-Mailer: git-send-email 2.14.1.581.gf28d330327-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 29 These patches add critical section event tracing support. Changes since RFC [1] are: - Make critical events independent of the preempt/irqsoff tracer. - Store pointers instead of symbol names to do less in the fast path. - Other changes based on Steven's comments. Here's an example of how Android's systrace will be using it to show critical sections as a gantt chart: http://imgur.com/download/TZplEVp [1] https://patchwork.kernel.org/patch/9676579/ Joel Fernandes (2): tracing: irqsoff: Move code under tracer config options tracing: Add support for critical section events include/linux/ftrace.h | 2 +- include/linux/irqflags.h | 3 +- include/trace/events/critical.h | 45 ++++++ kernel/trace/Kconfig | 5 + kernel/trace/Makefile | 1 + kernel/trace/trace_irqsoff.c | 331 ++++++++++++++++++++++++++-------------- 6 files changed, 269 insertions(+), 118 deletions(-) create mode 100644 include/trace/events/critical.h Cc: Steven Rostedt Cc: kernel-team@android.com -- 2.14.1.581.gf28d330327-goog