linux/tools/lib/perf/include/perf
Arnaldo Carvalho de Melo 2eeb09fe1c libperf: Use 'extern' in LIBPERF_API visibility macro
Use 'extern' on LIBPERF_API to address this issue that started appearing
with gcc 15, first seen in ubuntu 25.10:

  evlist.c: In function 'perf_evlist__purge':
  evlist.c:202:17: error: implicit declaration of function 'perf_evsel__delete'; did you mean 'perf_evsel__exit'? [-Wimplicit-function-declaration]
    202 |                 perf_evsel__delete(pos);
        |                 ^~~~~~~~~~~~~~~~~~
        |                 perf_evsel__exit
  evlist.c:202:17: error: nested extern declaration of 'perf_evsel__delete' [-Werror=nested-externs]
  evlist.c: In function 'perf_evlist__open':
  evlist.c:261:23: error: implicit declaration of function 'perf_evsel__open'; did you mean 'perf_evsel__exit'? [-Wimplicit-function-declaration]
    261 |                 err = perf_evsel__open(evsel, evsel->cpus, evsel->threads);
        |                       ^~~~~~~~~~~~~~~~
        |                       perf_evsel__exit
  evlist.c:261:23: error: nested extern declaration of 'perf_evsel__open' [-Werror=nested-externs]

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-12-05 10:31:32 -08:00
..
bpf_perf.h
core.h libperf: Use 'extern' in LIBPERF_API visibility macro 2025-12-05 10:31:32 -08:00
cpumap.h libperf cpumap: Add ability to create CPU from a single CPU number 2025-05-12 14:18:16 -03:00
event.h perf tools: Minimal DEFERRED_CALLCHAIN support 2025-12-02 16:13:32 -08:00
evlist.h
evsel.h
mmap.h
threadmap.h libperf threadmap: Add perf_thread_map__idx() 2025-05-21 15:07:13 -03:00