From: Mikko Ylinen <mikko.ylinen@linux.intel.com>
To: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: bpf <bpf@vger.kernel.org>
Subject: Re: -EBUSY with some selftests on 5.7-rcX
Date: Thu, 7 May 2020 10:24:14 +0300 [thread overview]
Message-ID: <a0ffa0bb-883c-41a6-f86c-8ea320fe798b@linux.intel.com> (raw)
In-Reply-To: <CAEf4Bzasmc4zvAyWJPPaWcu95CZ0DSuZC7vjZnpjNfw6T1TLJg@mail.gmail.com>
On 06/05/2020 23:18, Andrii Nakryiko wrote:
> On Wed, May 6, 2020 at 12:28 PM Mikko Ylinen
> <mikko.ylinen@linux.intel.com> wrote:
>> The error seems to come from register_fentry() but I don't yet have
>> good logs what goes wrong.
>
> Ok, this is actually useful. It's still few possibilities, but most
> seem to be related to ftrace subsystem. So here's portion of my
> Kconfig with FTRACE settings, see if you have some of those disabled
> and try to enable them, it might help. For instance, if you don't have
> a 5-byte preample in kernel functions (not sure which setting turns
> this on), bpf_arch_text_poke would also return EBUSY. Some of
> ftrace-specific code returns EBUSY in multiple places as well. So I'd
> start with trying to enable a lot of FTRACE stuff first:
With the following config changes:
-# CONFIG_FUNCTION_TRACER is not set
+CONFIG_FUNCTION_TRACER=y
+CONFIG_FUNCTION_GRAPH_TRACER=y
+CONFIG_DYNAMIC_FTRACE=y
+CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
+CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
+# CONFIG_FUNCTION_PROFILER is not set
# ./test_progs -t fentry_fexit
#13 fentry_fexit:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED
# ./test_progs -t test_lsm
#70 test_lsm:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED
Thanks!
Perhaps there could be a check whether the operation
is supported and if not,-ENOTSUPP is returned?
-- Mikko
prev parent reply other threads:[~2020-05-07 7:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-28 10:32 -EBUSY with some selftests on 5.7-rcX Mikko Ylinen
2020-05-01 20:18 ` Andrii Nakryiko
2020-05-06 19:28 ` Mikko Ylinen
2020-05-06 20:18 ` Andrii Nakryiko
2020-05-07 7:24 ` Mikko Ylinen [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=a0ffa0bb-883c-41a6-f86c-8ea320fe798b@linux.intel.com \
--to=mikko.ylinen@linux.intel.com \
--cc=andrii.nakryiko@gmail.com \
--cc=bpf@vger.kernel.org \
/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