From patchwork Thu Sep 12 19:03:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13802503 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 8B15EEED63A for ; Thu, 12 Sep 2024 19:19:25 +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=PrPXDAQds8GhpE0L2UtYrjlHtGIsSgYNHNY+b4ghkKA=; b=WouoFkOY61OTgyaFDnwE4e2UUL Fy4hL5GiDaUNsnurXi9NSC41+0pPXOS/I+tUK6h/jkc3+GcnTTB4VnTfnSyGNxajH7vpMrRHsUFU8 CenckxAV/RgJHgCoPFraiAY6s8jsIjjTPPT/ql03Hn7OdqO/wb5ZANQ8dJL2S6cwLhhMYFI5GMKQV jtkcpixAROvchef1nnlNT5mRIHt6KlaxHhVJ1Iq/jhduipsiAPR0dZv3lgQURUdDBUR77gNyzQQxy bxywGu7UzySO8fXYywxeLKR1JEdduPrd3TKStndkCZA5NFoRFI1zbqiQF9vH5WlToI86ZJTHQCucB /Cl7A5UA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sopLW-0000000E3ae-2JPu; Thu, 12 Sep 2024 19:19:14 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sop77-0000000Dzkg-1FCL for linux-arm-kernel@lists.infradead.org; Thu, 12 Sep 2024 19:04:22 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-e02a4de4f4eso2599502276.1 for ; Thu, 12 Sep 2024 12:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1726167859; x=1726772659; 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=PrPXDAQds8GhpE0L2UtYrjlHtGIsSgYNHNY+b4ghkKA=; b=o6pgaOEuIO1kYCvJFKaVojfhwoNYd3wq3Fwj0oOSKyD/DUyKDxxONDw9Ml/z+Q02/t UqDoGbvUVp4yc98hYkp5Z4LSMf82cpPoOW1OZ1mOP2b0gduWIYtPoAY4G6HJmXqevpb1 EO7CY7cEKZ1zQL9WjhvuBQu+tm67bGVmWdnV+umPRktqr47Lya8cmM3Fw/mp6FNXU5Yg /M0S5OwQ3ilL4Y8tw9HnrBrn49ShKEQz0X1lpeZ/YL0jLNHxgnv5E868gHZN79QZJ2f6 Bh9xUg7en2AscCrTcC+lywxtt6KE7+z2sSAATYJjEsxk+RE+Hke3rtsa0qp+BcpGaat0 002Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726167859; x=1726772659; 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=PrPXDAQds8GhpE0L2UtYrjlHtGIsSgYNHNY+b4ghkKA=; b=o645d0oYeUFAm6dsSgjbMZVTycEcBLTrZf2eplh2ndnFGx1Qrztel5PmARyiTUKVtk F7YQnMgBG+LmVSb+zPySBKXejI9ft3KeIKa5WWE+IGeFIyD/wFD5IHRU8rrNI2yVgfm3 ++grBNKrAW/qeJ+BoTF29HuNIiPNEU1iEahXsnhu+rd+meGtWVDJAdtMygbQrLPAQ8gc gsdYnY6FhZQs3NKi7EUfRkZEeLnHfkFBJmdTT5L+bFGnbvxUkvHTbhIwMf1Mc4m5YVrk qPSYTTGFpDOwIndu5G/9bNjPZGqmc59EHUyV4xtPiPJjQFdOOA3X/Jtmgk/+AkcpR7ab OQng== X-Forwarded-Encrypted: i=1; AJvYcCUkXvIFvPLyKxYLa/3L3A9KULt/Y/NsTA3IeloHCkzm44OC9BMII0uqMTDOmJkZaVGtJNC328F7UmtXCCCo0Nj6@lists.infradead.org X-Gm-Message-State: AOJu0YyNUGHN8iRizo5eJZiUmnqIi0oEtKBWTMKwOFrviRCVSSiuchZO k8gYKB2NXCEdiJY3AUZxfJG3Hv0judBOM2vbr5m+H95mGp6TeChLNfCCcaZNcSmQVxJBMp+AmMn XAX+ouw== X-Google-Smtp-Source: AGHT+IHsr4g0/u3/EUs9RZtOfqnhRbYbbDoqivzh2XAZyTREatuXZND1Qt3I55ORB/+O5w6/zYZkDZX/sbon X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:cf0e:7a99:e672:3862]) (user=irogers job=sendgmr) by 2002:a25:bfcd:0:b0:e0b:cce3:45c7 with SMTP id 3f1490d57ef6-e1d9dc5f6bcmr4760276.9.1726167859376; Thu, 12 Sep 2024 12:04:19 -0700 (PDT) Date: Thu, 12 Sep 2024 12:03:40 -0700 In-Reply-To: <20240912190341.919229-1-irogers@google.com> Message-Id: <20240912190341.919229-14-irogers@google.com> Mime-Version: 1.0 References: <20240912190341.919229-1-irogers@google.com> X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog Subject: [PATCH v2 13/13] 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-20240912_120421_428821_A27C8C26 X-CRM114-Status: GOOD ( 11.97 ) 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 -------