From patchwork Sat Sep 7 05:08:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13795088 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CBB4CD4846 for ; Sat, 7 Sep 2024 05:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To:From:Subject :References:Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hstFZECCLUDlqUcYiOTZJguGTSu2dQsvz/r164qnMpE=; b=GIuWJZkX1zFo8yZOvA6TbBC/Bv lWTX1lNBicBKtC3XC/MsUPY7Bjrk7GIaxwZb60CEKuP8NjSe8ZWTld/M1bWTELcHpRju+YDtvFfUp 7/CDlUosHSgu8l6Nyx/AAYSaj63aFszKF3UqyxMJ/hwhXn+lM9M1swgprOa5fPn0HKtTcsEqrHGfG jp5CdkN9Doe7nGaBhOajMSpJSRoL2PP9eABf87mmcIsKvLxfvjnsSdX7/uudek1Mx5hHqXrcVs99w Lz2K+YbbOfSQzZVbc3qOuqvhwq9PmrxyRZmZzgp3x+GUBqRRrY6+1H9TgujRgUTgUR6FmCvz2twBE aAlM251w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smnw7-0000000EOeW-32YK; Sat, 07 Sep 2024 05:24:39 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smnhE-0000000EMSG-0brp for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 05:09:17 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-6db24526096so100567867b3.1 for ; Fri, 06 Sep 2024 22:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1725685754; x=1726290554; darn=lists.infradead.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=hstFZECCLUDlqUcYiOTZJguGTSu2dQsvz/r164qnMpE=; b=VjJVSb+aSon41UD2cXzajGc3r3TUHcr8SDND8gB99WQ3Q1sTBYTmz57Uwb9am+qbZ6 YhV+scPBNVthzCG8OpcoS9ubvICZ4W6tqQlGI0OWvGIRRes5oaWirbrMCmraDdCrQcob rSaEmlyqrsFnqb50WgBHl9+eILPwah65Bj3fV+W4sC1j8zddG9mL1wAbTmRo1aDQ16nu cCiMDZJPrZYYsKVT4kKRACIkUpkbLlB3EAl5Mikn+DvRzRRmINwtMw2InRy19TSM+d02 J7qlXpMI7yqV2gb61g3+zL7dJy4s0s5oxoGOmK/6aZpxp70tLa5nDCIoLabRMJ2GKaMw ZlcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725685754; x=1726290554; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hstFZECCLUDlqUcYiOTZJguGTSu2dQsvz/r164qnMpE=; b=sgNlh3wsYlcavTZDn0805/ybtJzzv4JmUHze4nIKkTmoCa2FFEkDZ/l0NzPqAV+kmk rJ37fA84+cTpyophF37Pp/GFtPccINAzgIdV5h7HoIm2bb4LQzbCITu6F3KO7fnVZBcH zMCFkHrM5e6piJFYvPoRyaurxShRPYcYPovnPIFGrFvbFIs8QkuNOeFmPtxDhrvUpPTX WWMBUehb+mrZvUm1wFMZLKH+QiqHa3idchg0hBnLI5TpP6nkX8gB0k0AnveBJ8TaMjfu 71dfsfDwPBqejwGvxrkKxXXK/u6on570DLqqSnUrM7ou+4B4rQybULaClYs1PLZw43NA 3PEQ== X-Forwarded-Encrypted: i=1; AJvYcCULjg170VHpVM8zD+VndW5wFFwtiIL+ueMUBpZanT5cRKomm88b3tePyYo2A55AxdTqt0RIS5092t8LXb7yIaOj@lists.infradead.org X-Gm-Message-State: AOJu0YwMueorSSGoEHuKOHSaquULv1u9MgxiYJJdAh8580dh3fU1P1M3 DbErBMpDYBg5RZMsKinWoF3qzNGYVSeGWp5taAzXlg9UvKhSE9dGZ4D9XxkLBvcnmGNuJdNSobu 6qHX6lw== X-Google-Smtp-Source: AGHT+IG5oJaUZYWopcDEnnIXdYJhIy/sCSeitouQEpUX7tKbh+Ek6ySPDIWgZ4WxN7Y8NudRskSnJjYF+jnj X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:90e5:a813:c3d3:daed]) (user=irogers job=sendgmr) by 2002:a05:690c:ed6:b0:6b2:7ff8:ca3 with SMTP id 00721157ae682-6db4512bbbfmr2038657b3.4.1725685754616; Fri, 06 Sep 2024 22:09:14 -0700 (PDT) Date: Fri, 6 Sep 2024 22:08:30 -0700 In-Reply-To: <20240907050830.6752-1-irogers@google.com> Message-Id: <20240907050830.6752-16-irogers@google.com> Mime-Version: 1.0 References: <20240907050830.6752-1-irogers@google.com> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog Subject: [PATCH v1 15/15] perf docs: Document tool and hwmon events From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Ravi Bangoria , Weilin Wang , Jing Zhang , Xu Yang , Sandipan Das , Benjamin Gray , Athira Jajeev , Howard Chu , Dominique Martinet , Yang Jihong , Colin Ian King , Veronika Molnarova , "Dr. David Alan Gilbert" , Oliver Upton , Changbin Du , Ze Gao , Andi Kleen , " =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= " , Sun Haiyong , Junhao He , Tiezhu Yang , Yicong Yang , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_220916_209869_BB2650B7 X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a few paragraphs on tool and hwmon events. Signed-off-by: Ian Rogers --- tools/perf/Documentation/perf-list.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/perf/Documentation/perf-list.txt b/tools/perf/Documentation/perf-list.txt index dea005410ec0..7e3cd6c5e35d 100644 --- a/tools/perf/Documentation/perf-list.txt +++ b/tools/perf/Documentation/perf-list.txt @@ -243,6 +243,21 @@ For accessing trace point events perf needs to have read access to /sys/kernel/tracing, even when perf_event_paranoid is in a relaxed setting. +TOOL/HWMON EVENTS +----------------- + +Some events don't have an associated PMU instead reading values +available to software without perf_event_open. As these events don't +support sampling they can only really be read by tools like perf stat. + +Tool events provide times and certain system parameters. Examples +include duration_time, user_time, system_time and num_cpus_online. + +Hwmon events provide easy access to hwmon sysfs data typically in +/sys/class/hwmon. This information includes temperatures, fan speeds +and energy usage. + + TRACING -------