Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6179921imu; Mon, 21 Jan 2019 04:38:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN4D6R2HmmlTjkpU+OymCOXRnbJ2g32k26e4XbNSmsKvEnXgNld72p0x574O/kSJaMDED7RJ X-Received: by 2002:a17:902:4225:: with SMTP id g34mr30657818pld.152.1548074291248; Mon, 21 Jan 2019 04:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548074291; cv=none; d=google.com; s=arc-20160816; b=oNA7rnGunkmBD3ecnxdt2m4Pe33NxFZj7ZJvt0wiU82LNGNSK9qjGYhtIOnwcuw9bj NDrYb/KKkkLzXSuvBURJubWtSO2YXHb3UGqa4djLFtqqxfHc/1ZvdZBXHkQ2cj2UtTMC qLCvD8mhCkWfQgW0nL3hAAI+F0KPw2KZQ+JhHYIQGAy4f7bwuEWJXoi+tVSkyn/KxC3I gH3CRgXW4iLso6K6FMH5HWWpFWxMnAl2l5lNiN2qOk3gXHiKJqwA4SoZtC8CcsK00JTX 2LGCBNQVOrytAb9GnA3WEuRdwihFVEsJhCs1N4i21hKbffYLAPetQL/8SkLCE9cqoc9I MkZg== 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:to:from :dkim-signature; bh=Msfr76tfx+tcI5ozZwIa6iBs23v+S99MmthJrPTnC+Q=; b=i/xlbqdjxDS0DMxiL7ITgZLN03jpCD0jYcUPJFtgJHZorjKPY0Tv6yl08jd7hV76Bn lCgwzDffazQ49Mhf6j/xkA2NLBolhtb83fYFExE7O6No1+3PXhPomBwBsDqs2QL6KiOs wCeSZUT9YDlQsUcXtp64O9lFLPJXzRQ/7ZK6tDuqcgwlnkbKGpeZl94frSIqdWwC9xOs VweTqsxb1fkd8x9v/RHZMXq14ztAA7mpx1YhLq8aFLu/bxUJWiWYIN7O7HHvH5Pjp4k5 rw6MfLC2lEw/hjIIr/bpTv/vMvhYsWnYEXiM03msTIIAvWur3aYb8J9iIwnWoCq9n/UV 3g1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=ucMSt13+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m38si12467029pgl.125.2019.01.21.04.37.52; Mon, 21 Jan 2019 04:38:11 -0800 (PST) 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=fail header.i=@kapsi.fi header.s=20161220 header.b=ucMSt13+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728645AbfAUMfX (ORCPT + 99 others); Mon, 21 Jan 2019 07:35:23 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:52709 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbfAUMfX (ORCPT ); Mon, 21 Jan 2019 07:35:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Msfr76tfx+tcI5ozZwIa6iBs23v+S99MmthJrPTnC+Q=; b=ucMSt13+CxrXUlXTF09MB7/pbt sE/Q80o362kZFSJmUNm6q6fzJzLnNxnPUbFj7tIh2eNTXVSAPD0TtGFYUjMNI1j59+VcIQPHhmCEo BfwEI5FZvtlxgLjGRCfz7NcfUrXF8GM5Agv0GutkZKYroRQeh/gkc+VCDb4zcr/SZQdLVdk2g3S5y v+ZnGVeOd9gmbtBJ8lt2j4cN8OD2F9UsxzzeJz0sDplcAjrBgKFclqnJxv71MOwxXExZhKujASsP4 bt+CjogU1mKnRUhZ7uCM8K7kGvecKabxIsnID30ffQaCvFltsy/Q+NjUDvA9aAZms3RwZHXAJR/Fn yZhEXZHw==; Received: from lakka.kapsi.fi ([2001:67c:1be8::1] ident=Debian-exim) by mail.kapsi.fi with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1glYnJ-0003qx-QT; Mon, 21 Jan 2019 14:35:13 +0200 Received: from mcfrisk by lakka.kapsi.fi with local (Exim 4.84_2) (envelope-from ) id 1glYnJ-0004MV-MO; Mon, 21 Jan 2019 14:35:13 +0200 From: Viktor Rosendahl To: Ingo Molnar , Steven Rostedt , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Some new features for the preempt/irqsoff tracers Date: Mon, 21 Jan 2019 14:35:09 +0200 Message-Id: <1548074113-16599-1-git-send-email-Viktor.Rosendahl@bmw.de> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: 2001:67c:1be8::1 X-SA-Exim-Mail-From: mcfrisk@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, This series is meant to address two issues with the latency tracing. The first three patches provide a method to trace latencies that always occurs very close to each other and to differentiate between them, in spite of the fact that the latency tracers always work in overwrite mode. [PATCH 1/4] This implement fs notification for preempt/irqsoff. It makes it possible for userspace to detect when a new latency has been detected. [PATCH 2/4] This extends the preemptirq_delay_test module so that it can be used to generate a burst of closely occurring latencies. [PATCH 3/4] This adds a user space program to the tools directory that utilizes the fs notification feature and a randomized algorithm to print out any of the latencies in a burst with approximately equal probability. The last patch is not directly connected but doesn't apply cleanly on its own: [PATCH 4/4] This adds the option CONFIG_TRACE_CONSOLE_LATENCY to decide whether we want to trace prints to the console or not. best regards, Viktor Rosendahl Viktor Rosendahl (4): ftrace: Implement fs notification for preempt/irqsoff tracers preemptirq_delay_test: Add the burst feature and a sysfs trigger Add the latency-collector to tools ftrace: Add an option for tracing console latencies include/linux/irqflags.h | 13 + kernel/printk/printk.c | 5 +- kernel/trace/Kconfig | 21 + kernel/trace/preemptirq_delay_test.c | 139 ++- kernel/trace/trace.c | 31 +- kernel/trace/trace.h | 5 + kernel/trace/trace_irqsoff.c | 35 + tools/Makefile | 14 +- tools/trace/Makefile | 20 + tools/trace/latency-collector.c | 1190 ++++++++++++++++++++++++++ 10 files changed, 1444 insertions(+), 29 deletions(-) create mode 100644 tools/trace/Makefile create mode 100644 tools/trace/latency-collector.c -- 2.17.1