From 051231a14965480b11cc404a14e80d586a4d09d6 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 27 Jun 2024 10:09:55 -0700 Subject: [PATCH] debug jevents --- jevents/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jevents/cache.c b/jevents/cache.c index c767f47d..f04bf65c 100644 --- a/jevents/cache.c +++ b/jevents/cache.c @@ -203,7 +203,7 @@ int resolve_event_extra(const char *name, struct perf_event_attr *attr, extra = &extras; for (e = eventlist[h]; e; e = e->next) { printf("%s vs %s, nlen %d\n", e->name, name, nlen); - if (!strncmp(e->name, name , nlen)) { + if (!strcmp(e->name, name)) { char *event = real_event(e->name, e->event, nlen); char *s;