linux/tools/perf/jvmti
Arnaldo Carvalho de Melo 45718bce7d perf tools: Use const for variables receiving str{str,r?chr}() returns
Newer glibc versions return const char for str{str,chr}() where the
haystack/s is const so to avoid warnings like these on fedora 44 change
some variables to const:

  36     8.17 fedora:44                     : FAIL gcc version 15.2.1 20251111 (Red Hat 15.2.1-4) (GCC)
    libbpf.c: In function 'kallsyms_cb':
    libbpf.c:8489:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     8489 |         res = strstr(sym_name, ".llvm.");

Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20251211221756.96294-4-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
History 2025-12-17 09:30:37 -03:00
..
Build perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy() 2019-10-15 11:47:38 -03:00
jvmti_agent.c perf tools: Fix various typos in comments 2021-03-23 17:13:43 -03:00
jvmti_agent.h perf jvmti: Generate correct debug information for inlined code 2017-12-18 11:54:08 -03:00
libjvmti.c perf tools: Use const for variables receiving str{str,r?chr}() returns 2025-12-17 09:30:37 -03:00