Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1784045ybj; Sun, 22 Sep 2019 11:51:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUWz+r1JwgmjVv+mucSIIUWnjI7+STIHGLNX9HpngPm+s7egwQN3MJuKBML/D//G/Gsuky X-Received: by 2002:aa7:cd18:: with SMTP id b24mr562297edw.181.1569178273527; Sun, 22 Sep 2019 11:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569178273; cv=none; d=google.com; s=arc-20160816; b=Q3GUMml/16ILOXvYsVX0I5YJAW2IB5D8GD60jO0GhQbj+N3lzbeTZBJ6sSSJm2owhX V+kcwXrgZy+klZEV3JaS1mekfkCiGxGRHPAvQl/wj+EEzdkLTu+NPWG4Ii4k8TstYP2v XUKzf3MkNSP5F8lXbsTy7b2VJ7N0if0JwtR/5mUpVWUIM/9aEVC0CJXNufylg/Ro5qHb irvIvQ1dzl+5xNwziOitqD4J6nTXLcWS8tXHyOk09gizM+s1IHPpblkL9dA7XP+P/L3W 5Z+xVdwV6JeWAosiR0yVlCG1iQOSHucx+LFl8xq1D7P7cfHB6LsM++HZa4a6A6Cc5eLq JL3Q== 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:cc:to:from :dkim-signature; bh=M41FWwfMZykUG3UM5E046d+kFCa62CVo9tq7sqloUQo=; b=RSsYvq83hzmZVHp1sOSOZEiY/jEWjnRw8JkOTqIPULOPGFJH8Zrv8cWvkuTZuwiJON 24NyaZR7Uyf+BlJRCWPh70ftLa4/HwpSrdwSB/zWWmrnJTfbv1xFMklkDfzWNFJR1fKp wSqP467enGPM4PQmG5o9M0S4FnCFp7nnkHq+rQ3rv1ITFEd2OQxNB72Hu1ZojZYGUnDs HLbSpn3oVGuEz8Us70jlT9gQidH+VtCe+WimqEWFYBqJRejwvY9SEHlPMTTOEX39HsfF BkaZC2pZrFgwcf4AYiUOP/Ucbhij6dLPn5HM9UYJ50WlvlhqPo1gwkurYMnEBXnG1Iwc bY8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBiMJbJ8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si5314419edq.391.2019.09.22.11.50.50; Sun, 22 Sep 2019 11:51:13 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=lBiMJbJ8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392232AbfITPW1 (ORCPT + 99 others); Fri, 20 Sep 2019 11:22:27 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39028 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391431AbfITPW1 (ORCPT ); Fri, 20 Sep 2019 11:22:27 -0400 Received: by mail-wr1-f66.google.com with SMTP id r3so7177144wrj.6 for ; Fri, 20 Sep 2019 08:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=M41FWwfMZykUG3UM5E046d+kFCa62CVo9tq7sqloUQo=; b=lBiMJbJ8SP2xPJnxD0QXmaCiaGVgc/luSB7quljeb/tNOQjbiTWde10YS5NC0o+lIo XACAsxAt2dHCFZpuiygDF+VG+/zdkw5c+q6DpIZSJYu2ysKszIH5a0kEgfiCRLswID87 U1YcBsvAEpuW465UoCfxOO2zfxpI7DrHV1rnqkdpfkMUhg4hAnSqNrrkWiGt+VkC5+CD AM8x5EZmghdQtwIq+MV5t36Zwzi5+Iv6SxRGhJOj1QlOGJUiy9IJHDyP3NNxnRrITkMZ 9lWgWSzcuCvKhQMr//5T+7lshh74WGoHFBj9cblwOwW3zCQ5cCzsRsto/0YGiYjBUbtw earg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=M41FWwfMZykUG3UM5E046d+kFCa62CVo9tq7sqloUQo=; b=QRbLev4XiDmy+gZe5thfO+J3OWpbX7t9ruE8MhnpnLF0qsqMGjN3ByNiuFhcnWyxhh 17O72VOJRxC+94G7VGjDX1GWON9VijSzwoMyT78k3gRQaphgkRz4Qd6hIy6bkROq9PyR EgRFdj+Lwux8lAAfnf+D4ogCsHEtWcQpR8ADUTpOFKFdzLI6jpGUgCzQ6NEBOGbYa/O/ x+WF8cvxGNi1NbtQ3xXNw/iSWWT2ZdjgfLTziu0QXG3RDypb8Wx3H126XFH/UiriLLtj RBuBT5rA+wjjR79NhEVFB5gygBqgLS0uXVC7VofWmK5TzFpSFPWxrefvMKNRysSCVXmh 5Plw== X-Gm-Message-State: APjAAAXB+ZlxUC3xv8+oBEEUP/ZXoT6fyo6wEU1FKGkI6mxmrs3/RKfQ ZCvpb3pzPPYc455DGywaPA== X-Received: by 2002:a5d:66cb:: with SMTP id k11mr11707893wrw.174.1568992943758; Fri, 20 Sep 2019 08:22:23 -0700 (PDT) Received: from buster-jangle.bmw-carit.intra ([217.89.178.117]) by smtp.gmail.com with ESMTPSA id x2sm3152901wrn.81.2019.09.20.08.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 08:22:23 -0700 (PDT) From: "Viktor Rosendahl (BMW)" To: Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Cc: Joel Fernandes , "Viktor Rosendahl (BMW)" Subject: [PATCH v7 0/4] Some new features for the preempt/irqsoff tracers Date: Fri, 20 Sep 2019 17:22:15 +0200 Message-Id: <20190920152219.12920-1-viktor.rosendahl@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, There are not many changes this time. I mainly changed my email address, tweaked a commit message and removed the cluttering of a copyright message. Changes in v7: - [PATCH 1/4]: * I have added some reasons to end of the commit message why I believe that it makes sense to create a new workqueue. - [PATCH 2/4]: * Removed the cluttering of the copyright message. - [PATCH 3/4]: * No change - [PACTH 4/4]: * No change 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 work in overwrite mode. [PATCH 1/4] This implement fs notification for tracing_max_latency. 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 earlier it didn't apply cleanly on its own. However, now it does, so in principle it could be applied separately from the others. [PATCH 4/4] This adds the option console-latency to the trace options. This makes it possible to enable tracing of console latencies. best regards, Viktor Viktor Rosendahl (BMW) (4): ftrace: Implement fs notification for tracing_max_latency 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 | 22 + kernel/printk/printk.c | 6 +- kernel/trace/Kconfig | 6 +- kernel/trace/preemptirq_delay_test.c | 144 ++- kernel/trace/trace.c | 75 +- kernel/trace/trace.h | 19 + kernel/trace/trace_hwlat.c | 4 +- kernel/trace/trace_irqsoff.c | 12 + tools/Makefile | 14 +- tools/trace/Makefile | 20 + tools/trace/latency-collector.c | 1212 ++++++++++++++++++++++++++ 11 files changed, 1501 insertions(+), 33 deletions(-) create mode 100644 tools/trace/Makefile create mode 100644 tools/trace/latency-collector.c -- 2.17.1