Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2952854pxb; Fri, 12 Feb 2021 05:54:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxb9liOvUYwdQ8xr11sE/kCc0RsHcGO0W/9MUMf4oXqwFdcX40VXAFkpFRT6Qs3JR3MEgCK X-Received: by 2002:aa7:d358:: with SMTP id m24mr3449510edr.118.1613138060152; Fri, 12 Feb 2021 05:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613138060; cv=none; d=google.com; s=arc-20160816; b=Ko7/TBMZQ1AI8T2lwmcLAdRXjB1Hh13VAUV2qbtGEjsFtwDrzReQHP2rv8y9rjh3kG kxlOR62FY8jWnqMvwcLbJpUOJsGZ0C/xxvKdICbC8lKAiEHTelTZoiiCSHNEo095k+qK uAhZ9ZGz7NuQHofxN5nBdwDM0yRDN4Rmi+qPPvXCVghHEIYNnyhG2JIak5DGDZP3VBe7 L1r/Ja08z5if10UNXf8zawy5+LrktBk/jJdyRqnD6OglxZfzj21FvXmWaAjQ5LyG66Br YRwtkGWJmA4q8QiWF1cdeaYRHJhahV7dAIykXFX+0eYrkUvV97oauOyRIsTogsJuvivl eBIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=J+akSlpo0DdfFqm/q8TZ4Fyg9LyVL5Nsn3YPQ1SmhsU=; b=rsRDYYjVTJc2siiL+OCX/DfcruSmRNUBYwAPxzhAuK52mzsfkBg+smfW/FkpDgb3Oj b+EBwBHYdZVdqW5OuKrXBl98mCwqDmmPZt5R0mK2jtyj2wohp0z5NgDe0UmERlAA6Jsj dD77rN9G+V+IH1o6Kew2pcP7XgzWVTCXwoZwvLi2lL/Uap7ANDRIgEbvdXTb2cohHz3G jZck1wFMvwxSLRyc0AKM1F8euYTrjjDm5zKG5hdXUZc2Td5lGsh+BWNBD25j0kM/z9nk xbM7nrRi4xIYvGLmDb0Bx8hXFNdPwIW0ugl3rRCxmXM3SRMeHiTmwh53gLQ6A7oJ6dTJ UHtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bmw.de header.s=mailing1 header.b=Jnan0D7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bmw.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv30si6121696ejc.474.2021.02.12.05.53.55; Fri, 12 Feb 2021 05:54:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bmw.de header.s=mailing1 header.b=Jnan0D7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bmw.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231424AbhBLNw7 (ORCPT + 99 others); Fri, 12 Feb 2021 08:52:59 -0500 Received: from esa8.hc324-48.eu.iphmx.com ([207.54.65.242]:30743 "EHLO esa8.hc324-48.eu.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbhBLNw5 (ORCPT ); Fri, 12 Feb 2021 08:52:57 -0500 X-Greylist: delayed 398 seconds by postgrey-1.27 at vger.kernel.org; Fri, 12 Feb 2021 08:52:56 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bmw.de; i=@bmw.de; q=dns/txt; s=mailing1; t=1613137976; x=1644673976; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=J+akSlpo0DdfFqm/q8TZ4Fyg9LyVL5Nsn3YPQ1SmhsU=; b=Jnan0D7gI6f5IG8bYVLEFeUsXWs99dL/kjEDpz68JClQK1FsJ9vMb7u1 OlYR/5g4oFh+/KVVyW52rZnOORqu0hVHA+svYT4T3Q2ZrImuuzillq/N+ wC3g1O2B4Yb+gjXBjZAEq4p3elCaCPWcOM5oNTY43jfy3Yvl19uYXHArb M=; Received: from esagw3.bmwgroup.com (HELO esagw3.muc) ([160.46.252.35]) by esa8.hc324-48.eu.iphmx.com with ESMTP/TLS; 12 Feb 2021 14:44:31 +0100 Received: from esabb2.muc ([160.50.100.34]) by esagw3.muc with ESMTP/TLS; 12 Feb 2021 14:44:31 +0100 Received: from smucm10m.bmwgroup.net (HELO smucm10m.europe.bmw.corp) ([160.48.96.49]) by esabb2.muc with ESMTP/TLS; 12 Feb 2021 14:44:31 +0100 Received: from greenhouse.bmw-carit.intra (192.168.221.37) by smucm10m.europe.bmw.corp (160.48.96.49) with Microsoft SMTP Server (TLS; Fri, 12 Feb 2021 14:44:30 +0100 From: Viktor Rosendahl To: Steven Rostedt CC: Joel Fernandes , Ingo Molnar , , Subject: [PATCH v12 0/1] Add the latency-collector to tools Date: Fri, 12 Feb 2021 14:44:20 +0100 Message-ID: <20210212134421.172750-1-Viktor.Rosendahl@bmw.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SMUCM29L.europe.bmw.corp (160.46.167.43) To smucm10m.europe.bmw.corp (160.48.96.49) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v11 * I added a .gitignore in the tools/tracing/latency directory. Changes since v10 * Using libtracefs to control ftrace and find /sys/kernel/tracing * New options to list available tracers, select the tracer and other ftrace parameters * A signal handler to restore the ftrace state when the program terminates * Cleaned up the commit message a bit, removed example output etc. Viktor Rosendahl (1): Add the latency-collector to tools tools/Makefile | 14 +- tools/tracing/Makefile | 19 + tools/tracing/latency/.gitignore | 2 + tools/tracing/latency/Makefile | 24 + tools/tracing/latency/latency-collector.c | 2108 +++++++++++++++++++++ 5 files changed, 2161 insertions(+), 6 deletions(-) create mode 100644 tools/tracing/Makefile create mode 100644 tools/tracing/latency/.gitignore create mode 100644 tools/tracing/latency/Makefile create mode 100644 tools/tracing/latency/latency-collector.c -- 2.25.1