]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf probe: Check group string length
authorLeo Yan <leo.yan@arm.com>
Sat, 12 Oct 2024 20:47:24 +0000 (21:47 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 17 Oct 2024 16:55:58 +0000 (09:55 -0700)
commit6768faf9b70eec01c3c6d685b4f39049c561dbda
tree1660e6345efcc98c3c3b2a56f45ccc4a6353a170
parentd08e3f14e87259b9d63bf7eea7072d1bd61392ef
perf probe: Check group string length

In the kernel, the probe group string length is limited up to
MAX_EVENT_NAME_LEN (including the NULL terminator).

Check for this limitation and report an error if it is exceeded.

Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Link: https://lore.kernel.org/r/20241012204725.928794-3-leo.yan@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/probe-event.c