From: Rong Tao <rtoax@foxmail.com>
To: olsajiri@gmail.com
Cc: alexandre.torgue@foss.st.com, andrii@kernel.org, ast@kernel.org,
bpf@vger.kernel.org, chantr4@gmail.com, daniel@iogearbox.net,
deso@posteo.net, eddyz87@gmail.com, haoluo@google.com,
iii@linux.ibm.com, john.fastabend@gmail.com, kpsingh@kernel.org,
laoar.shao@gmail.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com, martin.lau@linux.dev,
mcoquelin.stm32@gmail.com, mykolal@fb.com, rongtao@cestc.cn,
rtoax@foxmail.com, sdf@google.com, shuah@kernel.org,
song@kernel.org, xukuohai@huawei.com, yonghong.song@linux.dev,
zwisler@google.com
Subject: Re: [PATCH bpf-next v8] selftests/bpf: trace_helpers.c: optimize kallsyms cache
Date: Tue, 29 Aug 2023 08:47:35 +0800 [thread overview]
Message-ID: <tencent_F746AF27A3E588BF061F427F59F9979A2A08@qq.com> (raw)
In-Reply-To: <ZOynCqBv/JJyZ2Kj@krava>
> > Hi, jirka. Thanks for your reply.
> >
> > > > @@ -164,13 +165,14 @@ int main(int argc, char **argv)
> > > > }
> > > >
> > > > /* initialize kernel symbol translation */
> > > > - if (load_kallsyms()) {
> > > > + ksyms = load_kallsyms();
> > >
> > > if we keep the load_kallsyms/ksym_search/ksym_get_addr functions as described
> > > in [1] the samples/bpf would stay untouched apart from the Makefile change
> >
> > Maybe we should make this modification, wouldn't it be better? After all,
> > not modifying the source code of samples/bpf is not really a reason not to
> > make modifications to load_kallsyms(), what do you think?
>
> I think we want separate selftest and samples changes and I don't see
> other way to do that
Thanks, jirka, I didn't notice this in the previous discussion, sorry.
Let me try to solve this problem.
Rong Tao
prev parent reply other threads:[~2023-08-29 0:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-26 14:46 Rong Tao
2023-08-27 2:48 ` Yafang Shao
2023-08-27 9:39 ` Jiri Olsa
2023-08-27 9:39 ` Jiri Olsa
2023-08-28 0:57 ` Rong Tao
2023-08-28 13:54 ` Jiri Olsa
2023-08-29 0:47 ` Rong Tao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_F746AF27A3E588BF061F427F59F9979A2A08@qq.com \
--to=rtoax@foxmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=chantr4@gmail.com \
--cc=daniel@iogearbox.net \
--cc=deso@posteo.net \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=iii@linux.ibm.com \
--cc=john.fastabend@gmail.com \
--cc=kpsingh@kernel.org \
--cc=laoar.shao@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=martin.lau@linux.dev \
--cc=mcoquelin.stm32@gmail.com \
--cc=mykolal@fb.com \
--cc=olsajiri@gmail.com \
--cc=rongtao@cestc.cn \
--cc=sdf@google.com \
--cc=shuah@kernel.org \
--cc=song@kernel.org \
--cc=xukuohai@huawei.com \
--cc=yonghong.song@linux.dev \
--cc=zwisler@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®