From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0435C433E6 for ; Sat, 16 Jan 2021 01:21:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8EB1723A3C for ; Sat, 16 Jan 2021 01:21:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727095AbhAPBVM (ORCPT ); Fri, 15 Jan 2021 20:21:12 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11165 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbhAPBVL (ORCPT ); Fri, 15 Jan 2021 20:21:11 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DHgDs0G87zl5RB; Sat, 16 Jan 2021 09:19:09 +0800 (CST) Received: from huawei.com (10.174.28.241) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Sat, 16 Jan 2021 09:20:19 +0800 From: Bixuan Cui To: , , , , , , , CC: , , Subject: [PATCH v3 2/2] perf tools: Add documentation for 'perf irq' command Date: Sat, 16 Jan 2021 09:19:20 +0800 Message-ID: <20210116011920.34487-3-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210116011920.34487-1-cuibixuan@huawei.com> References: <20210116011920.34487-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 | 47 +++++++++++++++++++++++++++ tools/perf/command-list.txt | 1 + 2 files changed, 48 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..8f1c466c3d6b --- /dev/null +++ b/tools/perf/Documentation/perf-irq.txt @@ -0,0 +1,47 @@ +perf-irq(1) +============= + +NAME +---- +perf-irq - Tool to trace/measure hardware interrupts + +SYNOPSIS +-------- +[verse] +'perf irq' [] {record|report} + +DESCRIPTION +----------- +There are several variants of 'perf irq': + + 'perf irq record ' to record the irq handler events + of an arbitrary workload. + + '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 + megasas | [0013] | 0.000003 s | 6631263.209564 s | 6631263.209567 s + acpi | [0016] | 0.000018 s | 6631263.085787 s | 6631263.085805 s + + +OPTIONS for 'perf irq' +---------------------------- + +--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