Re: [PATCH] selftests/bpf: Fix procmap_query()'s params mismatch and compilation warning

2024-09-02 Thread Jiri Olsa
On Mon, Sep 02, 2024 at 05:32:48PM +0800, Yuan Chen wrote: > From: Yuan Chen > > When the PROCMAP_QUERY is not defined, a compilation error occurs due to the > mismatch of the procmap_query()'s params, procmap_query() only be called in > the file where the function is defined, modify the params s

[PATCH] selftests/bpf: Fix procmap_query()'s params mismatch and compilation warning

2024-09-02 Thread Yuan Chen
From: Yuan Chen When the PROCMAP_QUERY is not defined, a compilation error occurs due to the mismatch of the procmap_query()'s params, procmap_query() only be called in the file where the function is defined, modify the params so they can match. We get a warning when build samples/bpf: trace