Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp77536pxb; Wed, 13 Jan 2021 23:54:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEHq5P/uvKxhkvMzXESIa/0Sr9a/k1A0WYEW3odIqYIPx6ey7xb9t54MnAZc93xQcF5r4Y X-Received: by 2002:a17:906:415a:: with SMTP id l26mr4383500ejk.463.1610610870298; Wed, 13 Jan 2021 23:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610610870; cv=none; d=google.com; s=arc-20160816; b=xaURzi+eaiqQ0saiY91fHAhuUDun1nupkvBkqhDtWujF2DTz8SE/zH/poyssuUdN08 bxUbhd7g32yEva3jutk+y407KP6jtbV5ip9+vFXx/aM+30xjY71HaoEXl4nVQMdTG3p6 dA7v1Bvy3wxopLy0eoDdWl2UUV2jFV5sYLLESSrBAlzXT4xtbjHAGpyrXazj0rtvijB7 0Bu2ftorCIW4hTusmZW+WTlJisw25Tj7hAsL2WpFTTSImcc4VIwK1OMgf/FCyCswtKsy F1WdLLDDXQn8u8nm0DulOfEocg/LndjymUL3UiPxUGanj5uu5R6EEegySq3PGw3bS7sb piTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Y53vHRU9JhbnGzzpZUJ/EOJqBj36BD/Laf4uM6aSMbE=; b=kqK1NFdUQultfTSbkFoPXl0hJDeIG4IiwZPOaCyhbcAzeoIZuGzNE1uNklJ1kHc0ii Ivd/sGGXnrgkHfZLjMdpLqGLGBAqCAkYli+HbtvrruTEzzVzBkZwqdNyEeckgOXGRuka xStcQWwrvjwENi98Y+cFwa2/QMn1ao5iZNJFOzNCyGUlXxsO8wlJ2+INEciGED083zDQ pnWhOOW2r9qSHZahfbm3ZBKFl9X5WCdSeCTiYnbkooJN1mFFUJruGJ9ZpoaP8nDq67AG ek1KfK9AVNuzSjrAmNOoqfDff5/U5SlJqF064rSfEYK4/xQ9nmmmZ2j6oWRnKkMnwAgT 1bEw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si2260388edu.515.2021.01.13.23.54.05; Wed, 13 Jan 2021 23:54:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbhANHun (ORCPT + 99 others); Thu, 14 Jan 2021 02:50:43 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:10967 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbhANHun (ORCPT ); Thu, 14 Jan 2021 02:50:43 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DGbzk3H1gzj6Jq; Thu, 14 Jan 2021 15:49:06 +0800 (CST) Received: from huawei.com (10.174.28.241) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 14 Jan 2021 15:49:47 +0800 From: Bixuan Cui To: , , , , , , , CC: Subject: [PATCH v2 2/2] perf tools: Add documentation for 'perf irq' command Date: Thu, 14 Jan 2021 15:48:52 +0800 Message-ID: <20210114074852.13231-3-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210114074852.13231-1-cuibixuan@huawei.com> References: <20210114074852.13231-1-cuibixuan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for 'perf irq' command. Signed-off-by: Bixuan Cui --- tools/perf/Documentation/perf-irq.txt | 58 +++++++++++++++++++++++++++ tools/perf/command-list.txt | 1 + 2 files changed, 59 insertions(+) create mode 100644 tools/perf/Documentation/perf-irq.txt diff --git a/tools/perf/Documentation/perf-irq.txt b/tools/perf/Documentation/perf-irq.txt new file mode 100644 index 000000000000..22709b6df62d --- /dev/null +++ b/tools/perf/Documentation/perf-irq.txt @@ -0,0 +1,58 @@ +perf-irq(1) +============= + +NAME +---- +perf-irq - Tool to trace/measure hardware interrupts + +SYNOPSIS +-------- +[verse] +'perf irq' {record|report|script} + +DESCRIPTION +----------- +There are several variants of 'perf irq': + + 'perf irq record ' to record the irq handler events + of an arbitrary workload. + + 'perf irq script' to see a detailed trace of the workload that + was recorded (aliased to 'perf script' for now). + + 'perf irq report' to calculate the time consumed by each + hardware interrupt processing function. + + Example usage: + perf irq record -- sleep 1 + perf irq report + + By default it shows the individual irq events, including the irq name, + cpu(execute the hardware interrupt processing function), time consumed, + entry time and exit time for the each hardware irq: + + ------------------------------------------------------------------------------------------------------------------------------------------- + Irq name | CPU | Time consume us | Handler entry time | Handler exit time + ------------------------------------------------------------------------------------------------------------------------------------------- + enp2s0f2-tx-0 | [0006] | 0.000001 s | 6631263.313329 s | 6631263.313330 s + + ------------------------------------------------------------------------------------------------------------------------------------------- + Irq name | CPU | Time consume us | Handler entry time | Handler exit time + ------------------------------------------------------------------------------------------------------------------------------------------- + megasas | [0013] | 0.000003 s | 6631263.209564 s | 6631263.209567 s + + ------------------------------------------------------------------------------------------------------------------------------------------- + Irq name | CPU | Time consume us | Handler entry time | Handler exit time + ------------------------------------------------------------------------------------------------------------------------------------------- + acpi | [0016] | 0.000018 s | 6631263.085787 s | 6631263.085805 s + + +OPTIONS for 'perf irq report' +---------------------------- + +--cpus:: + Show just entries with activities for the given CPUs. + +SEE ALSO +-------- +linkperf:perf-record[1] diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt index bc6c585f74fc..c5224ea3ac71 100644 --- a/tools/perf/command-list.txt +++ b/tools/perf/command-list.txt @@ -26,6 +26,7 @@ perf-report mainporcelain common perf-sched mainporcelain common perf-script mainporcelain common perf-stat mainporcelain common +perf-irq mainporcelain common perf-test mainporcelain common perf-timechart mainporcelain common perf-top mainporcelain common -- 2.17.1