Compile build issues with samples/bpf/ again
Subsystems (3)
Hi Maintainers,
It is annoy to experience that simply building kernel tree samples/bpf/ is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (for samples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.
Could maintainers add building samples/bpf/ to their build test scripts? (make headers_install && make M=samples/bpf)
Also I discovered, the command to build have also recently changed:
- Before : make samples/bpf/ or simply make in subdir samples/bpf/
- new cmd: make M=samples/bpf and in subdir is broken
Anyone knows what commit introduced this change? (I need it for a fixes tag, when updating README.rst doc)
Signature · 4 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer
Quoted 9 lines · Jesper Dangaard Brouer
Hi Maintainers,
It is annoy to experience that simply building kernel tree
samples/bpf/is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (forsamples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.
Hmm, something else than commit e55190f26f92 ("samples/bpf: Fix build for task_fd_query_user.c")?
Quoted 16 lines
Could maintainers add building
samples/bpf/to their build test scripts? (makeheaders_install&& make M=samples/bpf)Also I discovered, the command to build have also recently changed:
- Before : makesamples/bpf/or simply make in subdirsamples/bpf/
- new cmd: make M=samples/bpf and in subdir is brokenAnyone knows what commit introduced this change? (I need it for a fixes tag, when updating
README.rstdoc)--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
Quoted 11 lines · On Wed, 30 Oct 2019 11:53:21 +0100 Björn Töpel <[email protected]> wrote:
Quoted 9 lines · Jesper Dangaard Brouer
Hi Maintainers,
It is annoy to experience that simply building kernel tree
samples/bpf/is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (forsamples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.
Quoted 2 lines
Hmm, something else than commit
e55190f26f92("samples/bpf: Fix build fortask_fd_query_user.c")?
I see, you already fixed this... and it is in the bpf.git tree.
Then we only need your other fixes from ACME's tree. I just cloned a fresh version of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git
to check that 'make M=samples/bpf' still fails.
Quoted 9 lines
Quoted 9 lines
Could maintainers add building
samples/bpf/to their build test scripts? (makeheaders_install&& make M=samples/bpf)Also I discovered, the command to build have also recently changed:
- Before : makesamples/bpf/or simply make in subdirsamples/bpf/
- new cmd: make M=samples/bpf and in subdir is brokenAnyone knows what commit introduced this change? (I need it for a fixes tag, when updating
README.rstdoc)
The make cmdline change is confusing, because the old command 'make samples/bpf/' reports success (remember last '/') ... this could be why maintainers are not catching this.
See: old make cmd
$ touch samples/bpf/*kern.c $ make samples/bpf/ CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool $
New make cmd fails:
$ make M=samples/bpf samples/bpf/Makefile:209: WARNING: Detected possible issues with include path. samples/bpf/Makefile:210: WARNING: Please install kernel headers locally (make headers_install). AR samples/bpf/built-in.a make -C /home/hawk/git/kernel/bpf/samples/bpf/../../tools/lib/bpf/ RM='rm -rf' LDFLAGS= srctree=/home/hawk/git/kernel/bpf/samples/bpf/../../ O= HOSTCC samples/bpf/test_lru_dist HOSTCC samples/bpf/sock_example HOSTCC samples/bpf/fds_example.o HOSTLD samples/bpf/fds_example HOSTCC samples/bpf/sockex1_user.o HOSTLD samples/bpf/sockex1 HOSTCC samples/bpf/sockex2_user.o HOSTLD samples/bpf/sockex2 HOSTCC samples/bpf/bpf_load.o HOSTCC samples/bpf/sockex3_user.o HOSTLD samples/bpf/sockex3 /usr/bin/ld: samples/bpf/bpf_load.o: in function `do_load_bpf_file.part.2': bpf_load.c:(.text+0x91a): undefined reference to `test_attr__enabled' /usr/bin/ld: bpf_load.c:(.text+0x1403): undefined reference to `test_attr__open' collect2: error: ld returned 1 exit status make[1]: *** [scripts/Makefile.host:116: samples/bpf/sockex3] Error 1 make: *** [Makefile:1649: samples/bpf] Error 2
Signature · 4 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer
Quoted 3 lines · Jesper Dangaard Brouer
Quoted 1 line · On Wed, 30 Oct 2019 11:53:21 +0100 Björn Töpel <[email protected]> wrote:
On Wed, 30 Oct 2019 at 11:43, Jesper Dangaard Brouer <[email protected]> wrote:
[...]
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
It is annoy to experience that simply building kernel tree
samples/bpf/is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (forsamples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.
Quoted 8 lines
Quoted 2 lines
Hmm, something else than commit
e55190f26f92("samples/bpf: Fix build fortask_fd_query_user.c")?I see, you already fixed this... and it is in the bpf.git tree.
Then we only need your other fixes from ACME's tree. I just cloned a fresh version of
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git
to check that 'make M=samples/bpf' still fails.
Correct, the two fixes from Bjorn which made the test_attr__* optional were taken by Arnaldo given the main change was under tools/perf/perf-sys.h. If you cherry pick these ...
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=06f84d1989b7e58d56fa2e448664585749d41221
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=fce9501aec6bdda45ef3a5e365a5e0de7de7fe2d
... into bpf tree, then all builds fine. When Arnaldo took them, my assumption was that these fixes would have been routed by him to Linus' tree, and upon resync we pull them automatically into bpf tree again.
Look like didn't happen yet at this point, Arnaldo?
Build after cherry-pick:
root@foo1:~/bpf# make -j8 M=samples/bpf/ clean CLEAN samples/bpf/ CLEAN samples/bpf//Module.symvers root@foo1:~/bpf# make -j8 M=samples/bpf/ AR samples/bpf//built-in.a make -C /root/bpf/samples/bpf/../../tools/lib/bpf/ RM='rm -rf' LDFLAGS= srctree=/root/bpf/samples/bpf/../../ O= HOSTCC samples/bpf//bpf_load.o HOSTCC samples/bpf//xdp1_user.o HOSTCC samples/bpf//cookie_uid_helper_example.o HOSTCC samples/bpf//test_lru_dist HOSTCC samples/bpf//sock_example HOSTCC samples/bpf//fds_example.o HOSTCC samples/bpf//sockex1_user.o HOSTCC samples/bpf//sockex2_user.o HOSTCC samples/bpf//sockex3_user.o HOSTCC samples/bpf//tracex1_user.o HOSTCC samples/bpf//tracex2_user.o HOSTCC samples/bpf//tracex3_user.o HOSTCC samples/bpf//tracex4_user.o HOSTCC samples/bpf//tracex5_user.o HOSTCC samples/bpf//tracex6_user.o HOSTCC samples/bpf//tracex7_user.o HOSTCC samples/bpf//test_probe_write_user_user.o HOSTCC samples/bpf//trace_output_user.o HOSTCC samples/bpf//lathist_user.o HOSTCC samples/bpf//offwaketime_user.o HOSTCC samples/bpf//spintest_user.o HOSTCC samples/bpf//map_perf_test_user.o HOSTCC samples/bpf//test_overhead_user.o HOSTCC samples/bpf//test_cgrp2_array_pin.o HOSTCC samples/bpf//test_cgrp2_attach.o HOSTCC samples/bpf//test_cgrp2_sock.o HOSTCC samples/bpf//test_cgrp2_sock2.o HOSTLD samples/bpf//xdp1 HOSTLD samples/bpf//xdp2 HOSTCC samples/bpf//xdp_router_ipv4_user.o HOSTCC samples/bpf//test_current_task_under_cgroup_user.o HOSTCC samples/bpf//trace_event_user.o HOSTCC samples/bpf//sampleip_user.o HOSTCC samples/bpf//tc_l2_redirect_user.o HOSTCC samples/bpf//lwt_len_hist_user.o HOSTCC samples/bpf//xdp_tx_iptunnel_user.o HOSTCC samples/bpf//test_map_in_map_user.o HOSTLD samples/bpf//per_socket_stats_example HOSTCC samples/bpf//xdp_redirect_user.o HOSTCC samples/bpf//xdp_redirect_map_user.o HOSTCC samples/bpf//xdp_redirect_cpu_user.o HOSTCC samples/bpf//xdp_monitor_user.o HOSTCC samples/bpf//xdp_rxq_info_user.o HOSTCC samples/bpf//syscall_tp_user.o HOSTCC samples/bpf//cpustat_user.o HOSTCC samples/bpf//xdp_adjust_tail_user.o HOSTCC samples/bpf//xdpsock_user.o HOSTCC samples/bpf//xdp_fwd_user.o HOSTCC samples/bpf//task_fd_query_user.o HOSTCC samples/bpf//xdp_sample_pkts_user.o HOSTCC samples/bpf//ibumad_user.o HOSTCC samples/bpf//hbm.o CLANG-bpf samples/bpf//sockex1_kern.o CLANG-bpf samples/bpf//sockex2_kern.o CLANG-bpf samples/bpf//sockex3_kern.o CLANG-bpf samples/bpf//tracex1_kern.o CLANG-bpf samples/bpf//tracex2_kern.o CLANG-bpf samples/bpf//tracex3_kern.o CLANG-bpf samples/bpf//tracex4_kern.o CC samples/bpf//syscall_nrs.s CLANG-bpf samples/bpf//tracex6_kern.o CLANG-bpf samples/bpf//tracex7_kern.o CLANG-bpf samples/bpf//sock_flags_kern.o CLANG-bpf samples/bpf//test_probe_write_user_kern.o CLANG-bpf samples/bpf//trace_output_kern.o CLANG-bpf samples/bpf//tcbpf1_kern.o CLANG-bpf samples/bpf//tc_l2_redirect_kern.o CLANG-bpf samples/bpf//lathist_kern.o CLANG-bpf samples/bpf//offwaketime_kern.o CLANG-bpf samples/bpf//spintest_kern.o CLANG-bpf samples/bpf//map_perf_test_kern.o CLANG-bpf samples/bpf//test_overhead_tp_kern.o CLANG-bpf samples/bpf//test_overhead_raw_tp_kern.o CLANG-bpf samples/bpf//test_overhead_kprobe_kern.o CLANG-bpf samples/bpf//parse_varlen.o CLANG-bpf samples/bpf//parse_simple.o CLANG-bpf samples/bpf//parse_ldabs.o CLANG-bpf samples/bpf//test_cgrp2_tc_kern.o CLANG-bpf samples/bpf//xdp1_kern.o CLANG-bpf samples/bpf//xdp2_kern.o CLANG-bpf samples/bpf//xdp_router_ipv4_kern.o CLANG-bpf samples/bpf//test_current_task_under_cgroup_kern.o CLANG-bpf samples/bpf//trace_event_kern.o CLANG-bpf samples/bpf//sampleip_kern.o CLANG-bpf samples/bpf//lwt_len_hist_kern.o CLANG-bpf samples/bpf//xdp_tx_iptunnel_kern.o CLANG-bpf samples/bpf//test_map_in_map_kern.o CLANG-bpf samples/bpf//tcp_synrto_kern.o CLANG-bpf samples/bpf//tcp_rwnd_kern.o CLANG-bpf samples/bpf//tcp_bufs_kern.o CLANG-bpf samples/bpf//tcp_cong_kern.o CLANG-bpf samples/bpf//tcp_iw_kern.o CLANG-bpf samples/bpf//tcp_clamp_kern.o CLANG-bpf samples/bpf//tcp_basertt_kern.o CLANG-bpf samples/bpf//tcp_tos_reflect_kern.o CLANG-bpf samples/bpf//tcp_dumpstats_kern.o CLANG-bpf samples/bpf//xdp_redirect_kern.o CLANG-bpf samples/bpf//xdp_redirect_map_kern.o CLANG-bpf samples/bpf//xdp_redirect_cpu_kern.o CLANG-bpf samples/bpf//xdp_monitor_kern.o CLANG-bpf samples/bpf//xdp_rxq_info_kern.o CLANG-bpf samples/bpf//xdp2skb_meta_kern.o CLANG-bpf samples/bpf//syscall_tp_kern.o CLANG-bpf samples/bpf//cpustat_kern.o CLANG-bpf samples/bpf//xdp_adjust_tail_kern.o CLANG-bpf samples/bpf//xdp_fwd_kern.o CLANG-bpf samples/bpf//task_fd_query_kern.o CLANG-bpf samples/bpf//xdp_sample_pkts_kern.o CLANG-bpf samples/bpf//ibumad_kern.o CLANG-bpf samples/bpf//hbm_out_kern.o CLANG-bpf samples/bpf//hbm_edt_kern.o HOSTLD samples/bpf//fds_example HOSTLD samples/bpf//sockex1 HOSTLD samples/bpf//sockex2 HOSTLD samples/bpf//sockex3 HOSTLD samples/bpf//tracex1 HOSTLD samples/bpf//tracex2 HOSTLD samples/bpf//tracex3 HOSTLD samples/bpf//tracex4 HOSTLD samples/bpf//tracex5 HOSTLD samples/bpf//tracex6 HOSTLD samples/bpf//tracex7 HOSTLD samples/bpf//test_probe_write_user HOSTLD samples/bpf//trace_output HOSTLD samples/bpf//lathist HOSTLD samples/bpf//offwaketime HOSTLD samples/bpf//spintest HOSTLD samples/bpf//map_perf_test HOSTLD samples/bpf//test_overhead HOSTLD samples/bpf//test_cgrp2_array_pin HOSTLD samples/bpf//test_cgrp2_attach HOSTLD samples/bpf//test_cgrp2_sock HOSTLD samples/bpf//test_cgrp2_sock2 HOSTLD samples/bpf//xdp_router_ipv4 HOSTLD samples/bpf//test_current_task_under_cgroup HOSTLD samples/bpf//trace_event HOSTLD samples/bpf//sampleip HOSTLD samples/bpf//tc_l2_redirect HOSTLD samples/bpf//lwt_len_hist HOSTLD samples/bpf//xdp_tx_iptunnel HOSTLD samples/bpf//test_map_in_map HOSTLD samples/bpf//xdp_redirect HOSTLD samples/bpf//xdp_redirect_map HOSTLD samples/bpf//xdp_redirect_cpu HOSTLD samples/bpf//xdp_monitor HOSTLD samples/bpf//xdp_rxq_info HOSTLD samples/bpf//syscall_tp HOSTLD samples/bpf//cpustat HOSTLD samples/bpf//xdp_adjust_tail HOSTLD samples/bpf//xdpsock HOSTLD samples/bpf//xdp_fwd HOSTLD samples/bpf//task_fd_query HOSTLD samples/bpf//xdp_sample_pkts HOSTLD samples/bpf//ibumad HOSTLD samples/bpf//hbm UPD samples/bpf//syscall_nrs.h CLANG-bpf samples/bpf//tracex5_kern.o Building modules, stage 2. MODPOST 0 modules root@foo1:~/bpf#
Em Wed, Oct 30, 2019 at 04:07:32PM +0100, Daniel Borkmann escreveu:
Quoted 24 lines · Jesper Dangaard Brouer
Quoted 3 lines
Quoted 1 line · On Wed, 30 Oct 2019 11:53:21 +0100 Björn Töpel <[email protected]> wrote:
On Wed, 30 Oct 2019 at 11:43, Jesper Dangaard Brouer <[email protected]> wrote:
[...]
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
It is annoy to experience that simply building kernel tree
samples/bpf/is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (forsamples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.Quoted 8 lines
Quoted 2 lines
Hmm, something else than commit
e55190f26f92("samples/bpf: Fix build fortask_fd_query_user.c")?I see, you already fixed this... and it is in the bpf.git tree.
Then we only need your other fixes from ACME's tree. I just cloned a fresh version of
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git
to check that 'make M=samples/bpf' still fails.Correct, the two fixes from Bjorn which made the test_attr__* optional were taken by Arnaldo given the main change was under
tools/perf/perf-sys.h. If you cherry pick these ...
Quoted 8 lines
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=06f84d1989b7e58d56fa2e448664585749d41221
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=fce9501aec6bdda45ef3a5e365a5e0de7de7fe2d... into bpf tree, then all builds fine. When Arnaldo took them, my assumption was that these fixes would have been routed by him to Linus' tree, and upon resync we pull them automatically into bpf tree again.
Look like didn't happen yet at this point, Arnaldo?
Yes, it will go to Linus, I was just unsure when was that it should go, i.e. next or in the current window, so I've queued it up to next.
[acme@quaco perf]$ git tag --contains 06f84d1989b7e58d56fa2e448664585749d41221 perf-core-for-mingo-5.5-20191011
perf-core-for-mingo-5.5-20191021
[acme@quaco perf]$
So its in tip, but queued for 5.5, while I think you guys expect this to fast track into 5.4, right? If so, please get that queued up or tell me if you prefer for me to do it.
I agree with Jesper that when one changes something in common code, then one does have to test all tools/ that may use that common code, but in this specific case the breakage happened because tools/perf/ code was used outside tools/perf/ which I completely didn't expect to happen, whatever that is in tools/perf/perf-sys.h better go to tools/include or tools/arch or some other common area, agreed?
- Arnaldo
Quoted 168 lines
Build after cherry-pick:
root@foo1:~/bpf# make -j8 M=samples/bpf/ clean CLEAN samples/bpf/ CLEAN samples/bpf//Module.symvers root@foo1:~/bpf# make -j8 M=samples/bpf/ AR samples/bpf//built-in.a make -C /root/bpf/samples/bpf/../../tools/lib/bpf/ RM='rm -rf' LDFLAGS= srctree=/root/bpf/samples/bpf/../../ O= HOSTCC samples/bpf//bpf_load.o HOSTCC samples/bpf//xdp1_user.o HOSTCC samples/bpf//cookie_uid_helper_example.o HOSTCC samples/bpf//test_lru_dist HOSTCC samples/bpf//sock_example HOSTCC samples/bpf//fds_example.o HOSTCC samples/bpf//sockex1_user.o HOSTCC samples/bpf//sockex2_user.o HOSTCC samples/bpf//sockex3_user.o HOSTCC samples/bpf//tracex1_user.o HOSTCC samples/bpf//tracex2_user.o HOSTCC samples/bpf//tracex3_user.o HOSTCC samples/bpf//tracex4_user.o HOSTCC samples/bpf//tracex5_user.o HOSTCC samples/bpf//tracex6_user.o HOSTCC samples/bpf//tracex7_user.o HOSTCC samples/bpf//test_probe_write_user_user.o HOSTCC samples/bpf//trace_output_user.o HOSTCC samples/bpf//lathist_user.o HOSTCC samples/bpf//offwaketime_user.o HOSTCC samples/bpf//spintest_user.o HOSTCC samples/bpf//map_perf_test_user.o HOSTCC samples/bpf//test_overhead_user.o HOSTCC samples/bpf//test_cgrp2_array_pin.o HOSTCC samples/bpf//test_cgrp2_attach.o HOSTCC samples/bpf//test_cgrp2_sock.o HOSTCC samples/bpf//test_cgrp2_sock2.o HOSTLD samples/bpf//xdp1 HOSTLD samples/bpf//xdp2 HOSTCC samples/bpf//xdp_router_ipv4_user.o HOSTCC samples/bpf//test_current_task_under_cgroup_user.o HOSTCC samples/bpf//trace_event_user.o HOSTCC samples/bpf//sampleip_user.o HOSTCC samples/bpf//tc_l2_redirect_user.o HOSTCC samples/bpf//lwt_len_hist_user.o HOSTCC samples/bpf//xdp_tx_iptunnel_user.o HOSTCC samples/bpf//test_map_in_map_user.o HOSTLD samples/bpf//per_socket_stats_example HOSTCC samples/bpf//xdp_redirect_user.o HOSTCC samples/bpf//xdp_redirect_map_user.o HOSTCC samples/bpf//xdp_redirect_cpu_user.o HOSTCC samples/bpf//xdp_monitor_user.o HOSTCC samples/bpf//xdp_rxq_info_user.o HOSTCC samples/bpf//syscall_tp_user.o HOSTCC samples/bpf//cpustat_user.o HOSTCC samples/bpf//xdp_adjust_tail_user.o HOSTCC samples/bpf//xdpsock_user.o HOSTCC samples/bpf//xdp_fwd_user.o HOSTCC samples/bpf//task_fd_query_user.o HOSTCC samples/bpf//xdp_sample_pkts_user.o HOSTCC samples/bpf//ibumad_user.o HOSTCC samples/bpf//hbm.o CLANG-bpf samples/bpf//sockex1_kern.o CLANG-bpf samples/bpf//sockex2_kern.o CLANG-bpf samples/bpf//sockex3_kern.o CLANG-bpf samples/bpf//tracex1_kern.o CLANG-bpf samples/bpf//tracex2_kern.o CLANG-bpf samples/bpf//tracex3_kern.o CLANG-bpf samples/bpf//tracex4_kern.o CC samples/bpf//syscall_nrs.s CLANG-bpf samples/bpf//tracex6_kern.o CLANG-bpf samples/bpf//tracex7_kern.o CLANG-bpf samples/bpf//sock_flags_kern.o CLANG-bpf samples/bpf//test_probe_write_user_kern.o CLANG-bpf samples/bpf//trace_output_kern.o CLANG-bpf samples/bpf//tcbpf1_kern.o CLANG-bpf samples/bpf//tc_l2_redirect_kern.o CLANG-bpf samples/bpf//lathist_kern.o CLANG-bpf samples/bpf//offwaketime_kern.o CLANG-bpf samples/bpf//spintest_kern.o CLANG-bpf samples/bpf//map_perf_test_kern.o CLANG-bpf samples/bpf//test_overhead_tp_kern.o CLANG-bpf samples/bpf//test_overhead_raw_tp_kern.o CLANG-bpf samples/bpf//test_overhead_kprobe_kern.o CLANG-bpf samples/bpf//parse_varlen.o CLANG-bpf samples/bpf//parse_simple.o CLANG-bpf samples/bpf//parse_ldabs.o CLANG-bpf samples/bpf//test_cgrp2_tc_kern.o CLANG-bpf samples/bpf//xdp1_kern.o CLANG-bpf samples/bpf//xdp2_kern.o CLANG-bpf samples/bpf//xdp_router_ipv4_kern.o CLANG-bpf samples/bpf//test_current_task_under_cgroup_kern.o CLANG-bpf samples/bpf//trace_event_kern.o CLANG-bpf samples/bpf//sampleip_kern.o CLANG-bpf samples/bpf//lwt_len_hist_kern.o CLANG-bpf samples/bpf//xdp_tx_iptunnel_kern.o CLANG-bpf samples/bpf//test_map_in_map_kern.o CLANG-bpf samples/bpf//tcp_synrto_kern.o CLANG-bpf samples/bpf//tcp_rwnd_kern.o CLANG-bpf samples/bpf//tcp_bufs_kern.o CLANG-bpf samples/bpf//tcp_cong_kern.o CLANG-bpf samples/bpf//tcp_iw_kern.o CLANG-bpf samples/bpf//tcp_clamp_kern.o CLANG-bpf samples/bpf//tcp_basertt_kern.o CLANG-bpf samples/bpf//tcp_tos_reflect_kern.o CLANG-bpf samples/bpf//tcp_dumpstats_kern.o CLANG-bpf samples/bpf//xdp_redirect_kern.o CLANG-bpf samples/bpf//xdp_redirect_map_kern.o CLANG-bpf samples/bpf//xdp_redirect_cpu_kern.o CLANG-bpf samples/bpf//xdp_monitor_kern.o CLANG-bpf samples/bpf//xdp_rxq_info_kern.o CLANG-bpf samples/bpf//xdp2skb_meta_kern.o CLANG-bpf samples/bpf//syscall_tp_kern.o CLANG-bpf samples/bpf//cpustat_kern.o CLANG-bpf samples/bpf//xdp_adjust_tail_kern.o CLANG-bpf samples/bpf//xdp_fwd_kern.o CLANG-bpf samples/bpf//task_fd_query_kern.o CLANG-bpf samples/bpf//xdp_sample_pkts_kern.o CLANG-bpf samples/bpf//ibumad_kern.o CLANG-bpf samples/bpf//hbm_out_kern.o CLANG-bpf samples/bpf//hbm_edt_kern.o HOSTLD samples/bpf//fds_example HOSTLD samples/bpf//sockex1 HOSTLD samples/bpf//sockex2 HOSTLD samples/bpf//sockex3 HOSTLD samples/bpf//tracex1 HOSTLD samples/bpf//tracex2 HOSTLD samples/bpf//tracex3 HOSTLD samples/bpf//tracex4 HOSTLD samples/bpf//tracex5 HOSTLD samples/bpf//tracex6 HOSTLD samples/bpf//tracex7 HOSTLD samples/bpf//test_probe_write_user HOSTLD samples/bpf//trace_output HOSTLD samples/bpf//lathist HOSTLD samples/bpf//offwaketime HOSTLD samples/bpf//spintest HOSTLD samples/bpf//map_perf_test HOSTLD samples/bpf//test_overhead HOSTLD samples/bpf//test_cgrp2_array_pin HOSTLD samples/bpf//test_cgrp2_attach HOSTLD samples/bpf//test_cgrp2_sock HOSTLD samples/bpf//test_cgrp2_sock2 HOSTLD samples/bpf//xdp_router_ipv4 HOSTLD samples/bpf//test_current_task_under_cgroup HOSTLD samples/bpf//trace_event HOSTLD samples/bpf//sampleip HOSTLD samples/bpf//tc_l2_redirect HOSTLD samples/bpf//lwt_len_hist HOSTLD samples/bpf//xdp_tx_iptunnel HOSTLD samples/bpf//test_map_in_map HOSTLD samples/bpf//xdp_redirect HOSTLD samples/bpf//xdp_redirect_map HOSTLD samples/bpf//xdp_redirect_cpu HOSTLD samples/bpf//xdp_monitor HOSTLD samples/bpf//xdp_rxq_info HOSTLD samples/bpf//syscall_tp HOSTLD samples/bpf//cpustat HOSTLD samples/bpf//xdp_adjust_tail HOSTLD samples/bpf//xdpsock HOSTLD samples/bpf//xdp_fwd HOSTLD samples/bpf//task_fd_query HOSTLD samples/bpf//xdp_sample_pkts HOSTLD samples/bpf//ibumad HOSTLD samples/bpf//hbm UPD samples/bpf//syscall_nrs.h CLANG-bpf samples/bpf//tracex5_kern.o Building modules, stage 2. MODPOST 0 modules root@foo1:~/bpf#
Signature · 1 line
- Arnaldo
Daniel Borkmann
maintainerQuoted 37 lines · Arnaldo Carvalho de Melo
Em Wed, Oct 30, 2019 at 04:07:32PM +0100, Daniel Borkmann escreveu:
Quoted 24 lines · Jesper Dangaard Brouer
Quoted 3 lines
Quoted 1 line · On Wed, 30 Oct 2019 11:53:21 +0100 Björn Töpel <[email protected]> wrote:
On Wed, 30 Oct 2019 at 11:43, Jesper Dangaard Brouer <[email protected]> wrote:
[...]
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
It is annoy to experience that simply building kernel tree
samples/bpf/is broken as often as it is. Right now, build is broken in both DaveM net.git and bpf.git. ACME have some build fixes queued from Björn Töpel. But even with those fixes, build (forsamples/bpf/task_fd_query_user.c) are still broken, as reported by Eric Sage (15 Oct), which I have a fix for.Quoted 8 lines
Quoted 2 lines
Hmm, something else than commit
e55190f26f92("samples/bpf: Fix build fortask_fd_query_user.c")?I see, you already fixed this... and it is in the bpf.git tree.
Then we only need your other fixes from ACME's tree. I just cloned a fresh version of
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git
to check that 'make M=samples/bpf' still fails.Correct, the two fixes from Bjorn which made the test_attr__* optional were taken by Arnaldo given the main change was under
tools/perf/perf-sys.h. If you cherry pick these ...Quoted 8 lines
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=06f84d1989b7e58d56fa2e448664585749d41221
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=fce9501aec6bdda45ef3a5e365a5e0de7de7fe2d... into bpf tree, then all builds fine. When Arnaldo took them, my assumption was that these fixes would have been routed by him to Linus' tree, and upon resync we pull them automatically into bpf tree again.
Look like didn't happen yet at this point, Arnaldo?
Yes, it will go to Linus, I was just unsure when was that it should go, i.e. next or in the current window, so I've queued it up to next.
Quoted 8 lines
[acme@quaco perf]$ git tag --contains
06f84d1989b7e58d56fa2e448664585749d41221perf-core-for-mingo-5.5-20191011
perf-core-for-mingo-5.5-20191021
[acme@quaco perf]$So its in tip, but queued for 5.5, while I think you guys expect this to fast track into 5.4, right? If so, please get that queued up or tell me if you prefer for me to do it.
Personally, I don't think it is super critical, but I tend to agree with Jesper that samples code should compile before final release is out the door. I can cherry-pick both from tip into bpf tree, no problem. The commit will end up twice in git history, but we've done this in very rare occasions in the past to get dependencies into bpf.
Quoted 6 lines
I agree with Jesper that when one changes something in common code, then one does have to test all
tools/that may use that common code, but in this specific case the breakage happened becausetools/perf/code was used outsidetools/perf/which I completely didn't expect to happen, whatever that is intools/perf/perf-sys.hbetter go totools/includeortools/archor some other common area, agreed?
Some of the BPF samples code seems to be using sys_perf_event_open(), for other BPF bits under tools/ this seems not the case.
Thanks,
Daniel
David Miller
maintainerFrom: Jesper Dangaard Brouer <[email protected]>
Date: Wed, 30 Oct 2019 11:43:13 +0100
Quoted 3 lines
Also I discovered, the command to build have also recently changed:
- Before : makesamples/bpf/or simply make in subdirsamples/bpf/
- new cmd: make M=samples/bpf and in subdir is broken
Those build system changes were extremely annoying and have severely hampered my workflow to no end.
Not only have subdir builds been broken off and on by this, but when they do work they take forever so my usual shortcut of justing building a specific object file to build test something now doesn't save me much time at all.