[PATCH 02/34] perf jit: Add name of clock in error message
From: James Clark
Date: Wed Nov 18 2026 - 11:30:01 EST
Use the full name in the error message. This is also a valid form of -k
argument and says exactly what clock is needed rather than having to
work out how these numbers map to clock names.
Signed-off-by: James Clark <james.clark@xxxxxxxxxx>
---
tools/perf/util/jitdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index 45a05316b3ca..4c1a71702f62 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -220,7 +220,7 @@ jit_open(struct jit_buf_desc *jd, const char *name)
* validate event is using the correct clockid
*/
if (!jd->use_arch_timestamp && jit_validate_events(jd->session)) {
- pr_err("error, jitted code must be sampled with perf record -k 1\n");
+ pr_err("error, jitted code must be sampled with perf record -k CLOCK_MONOTONIC\n");
goto error;
}
--
2.43.0