Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbdIGASD (ORCPT ); Wed, 6 Sep 2017 20:18:03 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:32983 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070AbdIGASB (ORCPT ); Wed, 6 Sep 2017 20:18:01 -0400 X-Google-Smtp-Source: ADKCNb6MbHGU4gb54mGeMmtJY3fJg5IIMD0qHkYhiKyooydoC1PfM7jQgtWRjQOxT80ztvDTXEiwSg== From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Steven Rostedt , Peter Zijlstra , kernel-team@android.com Subject: [PATCH RFC v4 0/3] tracing: Add trace events for preemption and irq disable/enable. Date: Wed, 6 Sep 2017 17:17:49 -0700 Message-Id: <20170907001752.27015-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: 1519 Lines: 36 These patches add trace events support for preempt and irq disable/enable events. Changes since v3 (link [1]): Previously the patch series used the terms "critical section" but Peter suggested that this name is confusing due to ambiguity, so I dropped calling it that in this series. See discussion in [1]. I also dropped the "preemptirq" combined event (which behaves similar to the preemptirqsoff tracer) for now and will keep that for a later patch once we can get this foundation series in. Here's an example of how Android's systrace will be using it to show atomic sections as a gantt chart: http://imgur.com/download/TZplEVp I also added a slightly unrelated fix for a config option (patch 3/3). [1] https://patchwork.kernel.org/patch/9936045/ Joel Fernandes (3): trace/irqsoff: Prepare to add preempt and irq trace events trace: Add support for preempt and irq enable/disable events ftrace: Use correct config option for preemption debug include/linux/ftrace.h | 7 +- include/linux/irqflags.h | 4 +- include/trace/events/preemptirq.h | 62 +++++++++++++ kernel/trace/Kconfig | 9 ++ kernel/trace/Makefile | 1 + kernel/trace/trace_irqsoff.c | 178 +++++++++++++++++++++++++++++++------- 6 files changed, 226 insertions(+), 35 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