Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3053060pxb; Tue, 12 Jan 2021 05:19:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxm7fQodzWwQrlMe6rDVlk0s7tXP5uTr3VwDIj5y2RKt5GFofnL/r3O+lyt1iMnxCq8KPJN X-Received: by 2002:a17:907:d8b:: with SMTP id go11mr3203524ejc.303.1610457579246; Tue, 12 Jan 2021 05:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610457579; cv=none; d=google.com; s=arc-20160816; b=wZfTiY//+K+gm1Ucy2gYeOwSeHN+vN2zEMaQARquQjY7wU8EyadPlwTb25c67K9PvK hcxrnEDUq/OAPR8Cz2ScOsQgZKuiQQr0cxNyLjOcK3HeZxhg2HHqBCU2MKOxIXbTBwX1 f55smRffwMhCAcO6w7Q6mUp6PLgGc/kwENKmJMaJI6itRu2OAxBqYYDJhUYj1cD3snyG ctwdjTJ4oK0jxIFxN5qfcy6mpsILhX3liNdrcNYPDIuCzdKOygRYqOhfYDxiASzIBKEY 7s7/TxzlpYDJFc5oZWD/flPJ32Kz7+sKA+dUyulWTyjaoSqUjnRMtepUi3rqUcE4STZZ 6Buw== 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=5u76GxFax/vIvtQInRMHKjJuI1/mLqDlWadoZ9vcRKY=; b=EYD/P1skJKeCnp+onXkfoV1lL/Gl7ldrpRnK2soQU270AISYVoqrA2aNgkwdrjtnV7 mrEL7BET/ajUXBg/foDijXJP6x2AF9xmpCI51TDDHT3jR1B/3ZqQI+dwY/671yNpCoQJ 0PxThMmf+9FzhwkgwaCFa8L7ZmZmAY3yxsGbw7ig+56Ty+GWbkVlr1WLkE2JLOxaJm57 S702e/IPqTjo5owKHr/gbRTAIq79CZZbKncy3nxM3UoEZo008qYWtXT4R/gqiYAOm0eh J9tdicJ3evr44a4/4saUG2XGrxp3b4VG+bD2TsRw2np01JTeA4AjULTfAvHaOqVa7Wx9 2e2w== 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 q16si1129811ejd.199.2021.01.12.05.19.14; Tue, 12 Jan 2021 05:19:39 -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 S1730115AbhALNOs (ORCPT + 99 others); Tue, 12 Jan 2021 08:14:48 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10715 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403983AbhALM5m (ORCPT ); Tue, 12 Jan 2021 07:57:42 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DFVtQ6g54zl49w; Tue, 12 Jan 2021 20:55:42 +0800 (CST) Received: from huawei.com (10.174.28.241) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Tue, 12 Jan 2021 20:56:51 +0800 From: Bixuan Cui To: , , , , , , , CC: Subject: [PATCH 2/2] perf tools: Add documentation for 'perf irq' command Date: Tue, 12 Jan 2021 20:55:58 +0800 Message-ID: <20210112125558.72989-3-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210112125558.72989-1-cuibixuan@huawei.com> References: <20210112125558.72989-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..8c0e388dad59 --- /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|timeconsume|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 timeconsume' to calculate the time consumed by each + hardware interrupt processing function. + + Example usage: + perf irq record -- sleep 1 + perf irq timeconsume + + 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' +---------------------------- + +--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