From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbdILSLO (ORCPT ); Tue, 12 Sep 2017 14:11:14 -0400 Received: from mail-yw0-f174.google.com ([209.85.161.174]:35256 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdILSLN (ORCPT ); Tue, 12 Sep 2017 14:11:13 -0400 X-Google-Smtp-Source: AOwi7QAx22IFNclUOthc+WPZf2eIAOIgRKMvLuAJnp2QiE14AzbqhjNVn3YVqLg3bb5fVvGRuNSLFQ== From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Steven Rostedt , Peter Zijlstra , kernel-team@android.com Subject: [PATCH v5 0/2] tracing: Add trace events for preemption and irq disable/enable Date: Tue, 12 Sep 2017 11:11:07 -0700 Message-Id: <20170912181109.23906-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 These patches add trace events support for preempt and irq disable/enable events. This version has few changes suggested by Steven as well. I am looking forward to getting these accepted for v4.15 if possible. I based it on Linus's master, please let me know if there is another branch I need to rebase on. thanks! Changes since v4: - Use static inline instead of defines for tracer functions. - Moved new per-cpu variables to protect from recursion to the correct defines. - Dropped bug fix patch (3/3) not related to series and will submit that separately. 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 Links to earlier series: v4: https://lkml.org/lkml/2017/9/6/724 v3: https://lkml.org/lkml/2017/9/3/15 Joel Fernandes (2): tracing: Prepare to add preempt and irq trace events tracing: Add support for preempt and irq enable/disable events include/linux/ftrace.h | 3 +- include/linux/irqflags.h | 4 +- include/trace/events/preemptirq.h | 62 ++++++++++++++ kernel/trace/Kconfig | 9 ++ kernel/trace/Makefile | 1 + kernel/trace/trace_irqsoff.c | 176 +++++++++++++++++++++++++++++++------- 6 files changed, 222 insertions(+), 33 deletions(-) create mode 100644 include/trace/events/preemptirq.h Cc: Steven Rostedt Cc: Peter Zijlstra Cc: kernel-team@android.com -- 2.14.1.581.gf28d330327-goog