[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_ADC403037821ABAC8ECB6F15C6D7A3510507@qq.com>
Date: Mon, 21 Aug 2023 10:03:38 +0800
From: Rong Tao <rtoax@...mail.com>
To: yonghong.song@...ux.dev
Cc: andrii@...nel.org, ast@...nel.org, bpf@...r.kernel.org,
daniel@...earbox.net, haoluo@...gle.com, john.fastabend@...il.com,
kpsingh@...nel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, martin.lau@...ux.dev,
mykolal@...com, olsajiri@...il.com, rongtao@...tc.cn,
rtoax@...mail.com, sdf@...gle.com, shuah@...nel.org,
song@...nel.org
Subject: Re: [PATCH bpf-next v5] selftests/bpf: trace_helpers.c: optimize kallsyms cache
Sorry Song, I did not state clear.
libbpf_ensure_mem() is declared in libbpf_internal.h, we want to use
libbpf_ensure_mem() in trace_helpers.c, Unforturnately, we could only include
the headers 'install_headers:' defined in tools/lib/bpf/Makefile, the
'install_headers:' target does not include libbpf_internal.h, like:
tools/testing/selftests/bpf/trace_helpers.c:17:10:
fatal error: libbpf_internal.h: No such file or directory
17 | #include "libbpf_internal.h"
| ^~~~~~~~~~~~~~~~~~~
tools/testing/selftests/bpf/trace_helpers.c:17:10:
fatal error: bpf/libbpf_internal.h: No such file or directory
17 | #include "bpf/libbpf_internal.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
How about
1. dup-declare libbpf_ensure_mem() in trace_helpers.c
2. move libbpf_ensure_mem() declare into libbpf_common.h
Which one do you like best.
Best wishes,
Rong Tao
Powered by blists - more mailing lists