perf probe-event: Better error message for a too-long probe name
authorDima Kogan <dima@secretsauce.net>
Tue, 16 Apr 2024 04:55:11 +0000 (21:55 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Apr 2024 01:22:51 +0000 (22:22 -0300)
commitc15ed4442981ccf8e7e0d885f5cb500400dde9d7
tree746ef751274908e016dcc8b5a6b77f85ed95da1d
parenta529bec023d7d14d9fb7d5b456921630e63edc6b
perf probe-event: Better error message for a too-long probe name

This is a common failure mode when probing userspace C++ code (where the
mangling adds significant length to the symbol names).

Prior to this patch, only a very generic error message is produced,
making the user guess at what the issue is.

Signed-off-by: Dima Kogan <dima@secretsauce.net>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20240416045533.162692-3-dima@secretsauce.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c