All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND] BTF is not generated for gcc-built kernel with the latest pahole
@ 2023-07-26  1:25 Masami Hiramatsu
  2023-07-26 10:04 ` Jiri Olsa
  0 siblings, 1 reply; 14+ messages in thread
From: Masami Hiramatsu @ 2023-07-26  1:25 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Yonghong Song; +Cc: dwarves, bpf, Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

Hello,
(I resend this because kconfig was too big)

I found that BTF is not generated for gcc-built kernel with that latest
pahole (v1.25).
When I'm using the distro origin pahole (v1.22) it works. (I also checked
v1.23 and v1.24, both partially generated BTF)

e.g.

# echo 'f kfree $arg*' >> /sys/kernel/tracing/dynamic_events
sh: write error: Invalid argument

# cat /sys/kernel/tracing/error_log 
[   21.595724] trace_fprobe: error: BTF is not available or not supported
  Command: f kfree $arg*
                   ^
[   21.596032] trace_fprobe: error: Invalid $-valiable specified
  Command: f kfree $arg*
                   ^

/ # strings /sys/kernel/btf/vmlinux | grep kfree
kfree_on_online
maybe_kfree_parameter
trace_event_raw_rcu_invoke_kfree_bulk_callback
trace_event_data_offsets_rcu_invoke_kfree_bulk_callback
btf_trace_rcu_invoke_kfree_bulk_callback
early_boot_kfree_rcu
__bpf_trace_rcu_invoke_kfree_bulk_callback
perf_trace_rcu_invoke_kfree_bulk_callback
trace_event_raw_event_rcu_invoke_kfree_bulk_callback
trace_raw_output_rcu_invoke_kfree_bulk_callback
__probestub_rcu_invoke_kfree_bulk_callback
__traceiter_rcu_invoke_kfree_bulk_callback
kfree_rcu_cpu_work
kfree_rcu_cpu
kfree_rcu_batch_init
kfree_rcu_scheduler_running
kfree_rcu_shrink_scan
kfree_rcu_shrink_count
kfree_rcu_monitor
kfree_rcu_work


Here is the gcc version which I'm using.

gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04.1)

I also attached the kernel config file.

What is the recommended combination of the tools?
Should I use Clang to build the kernel for BTF?

Thank you,

-- 
Masami Hiramatsu (Google) <mhiramat@kernel.org>

[-- Attachment #2: config.tar.xz --]
[-- Type: application/x-xz, Size: 22156 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-02 14:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  1:25 [RESEND] BTF is not generated for gcc-built kernel with the latest pahole Masami Hiramatsu
2023-07-26 10:04 ` Jiri Olsa
2023-07-26 11:07   ` Masami Hiramatsu
2023-07-26 14:46     ` Alan Maguire
2023-07-27  0:38       ` Masami Hiramatsu
2023-07-27  1:51         ` Masami Hiramatsu
2023-07-31 15:45           ` Alan Maguire
2023-08-01  1:01             ` Masami Hiramatsu
2023-08-01 17:36               ` Alan Maguire
     [not found]                 ` <CA+JHD93Liq95RvfChifmnE7E9mKR42_W7rtpqgY9KAgYyGTZwQ@mail.gmail.com>
2023-08-01 18:28                   ` Fwd: " Arnaldo Carvalho de Melo
2023-08-02  8:02                     ` Masami Hiramatsu
2023-08-01 21:45                 ` Arnaldo Carvalho de Melo
2023-08-02 14:29                   ` Masami Hiramatsu
2023-07-27 13:10         ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.