From patchwork Wed Oct 2 03:20:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13819294 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 2D1B7CF3194 for ; Wed, 2 Oct 2024 03:37:54 +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=LNJbO3ECVgjqRfVy41pUI42bkQNVjMupI2VGD0uB/As=; b=BT6CKD3dgXmDKYwJgcjKCiX54Q Kov7z/UqlDdvDPaLbFmlLnYV26xwyHpIkU9DOhqIb4KOcuRBd7PnUasF4bRrOpsP4L3gjMFijgPBF 5bHNmx+S5vhMomOrIAHF6YdVEZXuQkUf3JvcXtgnMUgw2pxvgCOnORhm/OQqFxFo4/a+3X8y1avjp 8sGlO0auAFg2UF0vS0cDHjlTe2tXg7GTsm4DnHUcNrVT6ellN3QeyGYPsNmr2D6d0/hXf8edUd5PZ tjk6Q1Nyezahdm0kAdeRH11Mwuih2i6fbs0IMqFlUdstoSQpfl+ZXBEXB31iQAEjyBPZLJoFo0n+p isDMyHAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svqBM-00000004i6k-1DMk; Wed, 02 Oct 2024 03:37:44 +0000 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svpv5-00000004gBK-2YCL for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 03:20:56 +0000 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-6e1fbe2a6b1so109500187b3.2 for ; Tue, 01 Oct 2024 20:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1727839254; x=1728444054; 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=LNJbO3ECVgjqRfVy41pUI42bkQNVjMupI2VGD0uB/As=; b=0IamqJdHXKcrJNpaKtl5/uDwRohbJaWPw/Nf6EdVPuT0pKWjQ/eRPS1Lz+Jy/Cgssk cGe3NBuHqmtjebiU9rFtYukc3sYQlxghA/9Zpj1ljJHH2Gm49PANbVY7CSnyY71ifxCg BPtDHjBHhEoaTrK6eErZ9A7u0hWwm5rykLMyV5DVjQQqCBclKYloI8AbkrOhJpAmmv0j BTTbh3jh1EtLxgRuL2qXN2OBvG3Yvm37gWq+/egvyDF3Mfmpg572tWQrA+dZm8mTPH0F +k/9ktZCK8wnv6W1wyjD9ufG5VG3kYOixKsnHUeJh9xloET/7uNiFTPnileb3bgijYm5 ydpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727839254; x=1728444054; 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=LNJbO3ECVgjqRfVy41pUI42bkQNVjMupI2VGD0uB/As=; b=sZVW2fITrhkRty9LuMoRIQvmgovY/YonKSe852Mohnz6qtDNh5S45BxSKSpdvZmBoj qBlGN2fPz/zkfswJgfDGZJtoSSz4DiquCaeyS6H8ntQ1QN6zUrMCWwdN7axdq3Wmh492 +DJDY/78UByiK/7fPc8iBq3k4DVpPvm6GhTT8l/ujf/YKo9J4ii9HPJQNcIteTDcL84w e4CuYLCNIbokQe94VIoIdJrwvmmH97W8zKhVngNL9fS3sbWVx6j1qnvZyJLKSKVlV+qZ 87ATs1ek6hH+TdoSw8/un3l3MpDgGBJ8Txboz9t8GJtEEUCvTfM9/rZRoh22d/CEduTJ /pzg== X-Forwarded-Encrypted: i=1; AJvYcCUWHi8S6XSdUj/G9Q8Sxw6zzdEvvOBNiCQHo0/wA+GlFqJ7ckYQobe24S/DLaMrjBmW23wRBjGIuxg0PkXdvtbw@lists.infradead.org X-Gm-Message-State: AOJu0Yx6Eesnu8rL0BTXRZ6JOVKJ090PMGdU4A/gqPJ1jV116k/AvSJR 3gsd6mb0kVUUzH0Lz8kq+e7uDDdM0+CDtQEWU+ISMc68vdhBKQGC+ujfqUMHRjPlnIEjAjbU+0X X/oEpqw== X-Google-Smtp-Source: AGHT+IGyarEeuwdMvust1yq5sAQKvw4va1UKOfQvuvp37bcj1JGnGgp0h/YfXIu9yL4w1PHiMsTtvB//he04 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:ffa1:6d00:2acb:535f]) (user=irogers job=sendgmr) by 2002:a25:6992:0:b0:e17:8e73:866c with SMTP id 3f1490d57ef6-e2638443a7amr7352276.10.1727839253957; Tue, 01 Oct 2024 20:20:53 -0700 (PDT) Date: Tue, 1 Oct 2024 20:20:16 -0700 In-Reply-To: <20241002032016.333748-1-irogers@google.com> Message-Id: <20241002032016.333748-14-irogers@google.com> Mime-Version: 1.0 References: <20241002032016.333748-1-irogers@google.com> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog Subject: [PATCH v3 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 , Weilin Wang , Ravi Bangoria , Sandipan Das , Xu Yang , Benjamin Gray , Athira Jajeev , Howard Chu , Veronika Molnarova , "Dr. David Alan Gilbert" , Oliver Upton , Changbin Du , "Steinar H. Gunderson" , Ze Gao , Dominique Martinet , " =?utf-8?q?Cl=C3=A9ment_Le_?= =?utf-8?q?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-20241001_202055_670677_6A44071B X-CRM114-Status: GOOD ( 11.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 -------