From nobody Thu Sep 24 13:00:48 2026 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25B1D51DB11 for ; Wed, 23 Sep 2026 13:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790171543; cv=none; b=h8zcnqOVKVqvB5xhZnYkTuAk6mSq2GM1tNz+jl5WhGzkQxoUkUKuZ2X/i++1OOpUnsc8o4+8vraoqn2l1Rof9Hb6Mxe9E3KfyojJZks++PTGQJ+M8xyH7bFJVPvouo7er39CW4ry0oxhz7sbTxacMcd+1Zy4OmZrHxdy29YADfU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790171543; c=relaxed/simple; bh=U9iWaVNkVNi3vlsjZABvr31qE1vOlVVC6nCKmAYEIsA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ywe7Mf6ahTAHi7N7mnL9Jxwg9ssGBQCEQyxS4DcHhDm2OlU4nyY4aWgS+SfazxkyRYQefFyThAkxnL3S06P+vHQsmiDVXcDRQhbhgMAAjSC8voxMRFKfy+DNlpVVXjnNFfV14y3frOppCENb4TV6TOUAbwn6LN81To3F4BP6P1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SUY4beoh; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SUY4beoh" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49b912e4b11so5825135e9.3 for ; Wed, 23 Sep 2026 06:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790171540; x=1790776340; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/oGIFkxwZ9bBjS+3ZXDVd/F3W6tAedWtQ6ECDASCr0o=; b=SUY4beohuWW5CoJYfPfn8YNiw4kiFyuYkFhbDejbzkDmOTWwQB+5ml8jI286o5/Had 8/bKKPJhL5Lu4ctGQfn5jsnXryhjbmBHGsk0mr0SxWIyOSuidcvprYy2Mlw+wrDhn5jY S916AM7XkKOaZIHp9/6DrKs+IA5ucRkYdWmoODQOEzqyNWdxe7Oy0wW/THRa7hfF8PNK jSVUWRTfDQ4J+cF0PytwoX1+6zm96+f2KmVGvYahbdvhC+kyX2wcUYSfenx6aqiSLlVI apYivbHhNYxmVOMSyNCGaniI5gYf59+bsfZCkDlxPXD+tCKtSgE81F5/YD7QVl+dAMAi dH9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790171540; x=1790776340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=/oGIFkxwZ9bBjS+3ZXDVd/F3W6tAedWtQ6ECDASCr0o=; b=tm60D32P2Ve5FAm5ZrITq6wkfg5GL/lVIoUBvYd9xp0HCaOiqzXiWIItgiMIxXF5xV h93P2OwzI/QpyfQPFDuMz21Q6LyGOOhHbdx0D+oU1ylbgyla0bp+BSny2n8uAc8Oa6/v cOTjB4d841FmBmjuD3liSxf3VrGMJKDS3RIuOgGYlU7rhTV0yjsWsjAb002kop8S4Jgn g3osaDOVmncpjDWdHn3dBIU0/pBmaNmwPlda2Fn7wIUphemKVYy/MfmerJYLtT0EUGw3 hzwWs/5dU/SdC1vAKRbSQR6jOpX7uFg8v7qi69sLunNpLFM+1z+S64QKdAhLe176hdF2 vFyw== X-Forwarded-Encrypted: i=1; AKwUvBxHdD5TraX8Y5FChXIjGhENg9TNgjgLj3SbBXzrPTtmquw/7t3Alk3Z9xypp5TzBL1VIpTuYBrUOdVAOZ4=@vger.kernel.org X-Gm-Message-State: AFuF++mNjglEF1ZqQicsMGxkWMtuuf1NeEKGeHCPh3mmPV1qocs/tRq9 1Yv7ueizjD3qLFH/merLceCpZ5BytPrnnNRB3YXlX+ZxpuWdwSFBYZjy X-Gm-Gg: AYBFou2gipX8jbn8+D7eBC4ZTkbOuF7xXS21YBKA0T1gzcvQp6TFHvsYKGTqbjOKFyS Ih8FhLigfx5Yi4FelgF8xrcI6svhJGwmjC5BUwcKwKrwB2x33QpO5h//u6uWqNV9PZcRELYwrLU A9TgiPrwIHTC0O/7FwsDnv7wWwntVGHtEandGzPytLq7uzC5GNoQS6zLjbqyJZMMGx2tKE3DYe+ 7WYAi3Zq8vrdyXJE6cOEGIr+m2ASygG6sDPiD5OtT1zd60qNb/gIeuR5PETJ6zi7K/osi+AtcgH b+JO+JRCo5VTb/3NkpRq6Ok7fOom5/ZOZonKaDuoEeLDgQjnFeoyjSUyZVo7LgIVfOSFnWHT9uR p1wqZdCoCTXe9UjHb6ykDKDQxV1CYUPcZa/bpfgpPq1C1Uo8RT+/JaKSLBJMhYKNjEiJONY7aav c7s8RHm3Vd6VNdfAt1X9kdFh46cuZAcOEvz4bb4IZxgK168m+l4U8M+sdZY2fzcGNarpfJLyUNv gUQMyRdBT+Agz8fZAltfE22jD8dhw== X-Received: by 2002:a05:600c:4ece:b0:49e:84bf:6110 with SMTP id 5b1f17b1804b1-49fdee0af85mr41236635e9.6.1790171540051; Wed, 23 Sep 2026 06:52:20 -0700 (PDT) Received: from christian-ThinkPad-T470.. ([2a03:4460:170d:5700:4660:b0ee:e7f9:8eac]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fde197466sm73603685e9.7.2026.09.23.06.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 06:52:19 -0700 (PDT) From: Christian Melendez To: acme@kernel.org Cc: irogers@google.com, namhyung@kernel.org, jolsa@kernel.org, peterz@infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Melendez Subject: [PATCH] perf stat: document task-clock/cpu-clock in TIMINGS Date: Wed, 23 Sep 2026 15:51:40 +0200 Message-Id: <20260923135140.386033-1-chrismelnu@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" task-clock/cpu-clock appear in perf stat's own example output but were never explained in perf-stat.txt, unlike time elapsed/user/sys. This came up unanswered on the list in 2013 and 2015 without docs ever being added. Link: https://patch.msgid.link/CAP-5=3DfV0-yvc68BUSKoSajHjHY_A6COgbEJYiFxRg= +G-8LeJhQ@mail.gmail.com Signed-off-by: Christian Melendez Reviewed-by: Ian Rogers --- tools/perf/Documentation/perf-stat.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Documentat= ion/perf-stat.txt index f334aabdc809..c0d6c344f9eb 100644 --- a/tools/perf/Documentation/perf-stat.txt +++ b/tools/perf/Documentation/perf-stat.txt @@ -621,6 +621,16 @@ user/system lands: =20 Those times are the very same as displayed by the 'time' tool. =20 +We also display a clock-based timing metric that depends on the +target being monitored: + + 83723.452481 task-clock:u (msec) # 1.004 CPUs utiliz= ed + +For a single task, task-clock reports a clock count specific to that +task. When the target is a CPU or the whole system (-a or -C), +cpu-clock is reported instead. cpu-clock is a high-resolution per-CPU +timer. See perf_event_open(2) for more details. + CSV FORMAT ---------- =20 @@ -671,4 +681,4 @@ that can be used for parsing. =20 SEE ALSO -------- -linkperf:perf-top[1], linkperf:perf-list[1] +linkperf:perf-top[1], linkperf:perf-list[1], perf_event_open(2) --=20 2.34.1