From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751828AbdIVBue (ORCPT ); Thu, 21 Sep 2017 21:50:34 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:47755 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbdIVBud (ORCPT ); Thu, 21 Sep 2017 21:50:33 -0400 X-Google-Smtp-Source: AOwi7QCFfmx9fxRiw81siUAcOEkOCtgjuxkJQCx9BwcOZMgrFerxtDH3r7vCaBv0/ZPyuxIhu6n4fA== From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Joel Fernandes , Steven Rostedt , Peter Zilstra Subject: [PATCH v6 0/2] tracing: Add trace events for preemption and irq disable/enable Date: Thu, 21 Sep 2017 18:50:22 -0700 Message-Id: <20170922015024.16123-1-joelaf@google.com> X-Mailer: git-send-email 2.14.1.821.g8fa685d3b7-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. Changes since v5: - Use trace_*_rcuidle variants (thanks Steve!) 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: v5: https://lkml.org/lkml/2017/9/12/507 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 | 66 ++++++++++++++ kernel/trace/Kconfig | 9 ++ kernel/trace/Makefile | 1 + kernel/trace/trace_irqsoff.c | 176 +++++++++++++++++++++++++++++++------- 6 files changed, 226 insertions(+), 33 deletions(-) create mode 100644 include/trace/events/preemptirq.h Cc: Steven Rostedt Cc: Peter Zilstra -- 2.14.1.821.g8fa685d3b7-goog