* libbpf packaging @ 2019-03-25 12:21 Jiri Olsa 2019-03-25 12:52 ` Daniel Borkmann 0 siblings, 1 reply; 9+ messages in thread From: Jiri Olsa @ 2019-03-25 12:21 UTC (permalink / raw) To: Daniel Borkmann, Alexei Starovoitov, Andrey Ignatov Cc: Arnaldo Carvalho de Melo, Song Liu, bpf hi guys, we want to package libbpf and I'd like to coordinate with you on some issues I've met on this: 1) I think libbpf should be part of kernel-tools-libs and kernel-tools-libs-devel, which would look like below (from early rpm build): $ rpm -qpl kernel-tools-libs-5.0.0-1.fc31.x86_64.rpm /usr/lib/.build-id /usr/lib/.build-id/ca /usr/lib/.build-id/ca/654da1e5ea553f985e28b8d98ad24e51f19e88 /usr/lib/.build-id/f6 /usr/lib/.build-id/f6/a788b316f26fbe70db47bfc0ef500348117023 /usr/lib64/libbpf.so.0 /usr/lib64/libbpf.so.0.0.1 /usr/lib64/libcpupower.so.0 /usr/lib64/libcpupower.so.0.0.1 /usr/share/licenses/kernel-tools-libs /usr/share/licenses/kernel-tools-libs/COPYING $ rpm -qpl kernel-tools-libs-devel-5.0.0-1.fc31.x86_64.rpm /usr/include/bpf/bpf.h /usr/include/bpf/btf.h /usr/include/bpf/libbpf.h /usr/include/cpufreq.h /usr/include/cpuidle.h /usr/lib64/libbpf.a /usr/lib64/libbpf.so /usr/lib64/libcpupower.so Do you see libbpf as a standalone package or kernel-tools-libs* wuold be ok for you? 2) There's already bcc-devel's libbpf library packaged: $ rpm -qf /usr/lib64/libbpf.so bcc-devel-0.8.0-1.fc28.x86_64 so there's a conflict.. any chance we could rename libbpf to something else like: libbpf2.so libbpfobject.so libbpfbest.so ...? I checked and I think those 2 conflicting libraries don't make a valid case for using 'alternatives'. Also the libbpf.so from bcc-devel has been there for some time so we can't just remove/rename it.. ;-) thoughts? thanks, jirka ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 12:21 libbpf packaging Jiri Olsa @ 2019-03-25 12:52 ` Daniel Borkmann 2019-03-25 16:03 ` Alexei Starovoitov 0 siblings, 1 reply; 9+ messages in thread From: Daniel Borkmann @ 2019-03-25 12:52 UTC (permalink / raw) To: Jiri Olsa, Alexei Starovoitov, Andrey Ignatov Cc: Arnaldo Carvalho de Melo, Song Liu, bpf, bblanco On 03/25/2019 01:21 PM, Jiri Olsa wrote: > hi guys, > we want to package libbpf and I'd like to coordinate > with you on some issues I've met on this: > > 1) I think libbpf should be part of kernel-tools-libs and kernel-tools-libs-devel, > which would look like below (from early rpm build): > > $ rpm -qpl kernel-tools-libs-5.0.0-1.fc31.x86_64.rpm > /usr/lib/.build-id > /usr/lib/.build-id/ca > /usr/lib/.build-id/ca/654da1e5ea553f985e28b8d98ad24e51f19e88 > /usr/lib/.build-id/f6 > /usr/lib/.build-id/f6/a788b316f26fbe70db47bfc0ef500348117023 > /usr/lib64/libbpf.so.0 > /usr/lib64/libbpf.so.0.0.1 > /usr/lib64/libcpupower.so.0 > /usr/lib64/libcpupower.so.0.0.1 > /usr/share/licenses/kernel-tools-libs > /usr/share/licenses/kernel-tools-libs/COPYING > > $ rpm -qpl kernel-tools-libs-devel-5.0.0-1.fc31.x86_64.rpm > /usr/include/bpf/bpf.h > /usr/include/bpf/btf.h > /usr/include/bpf/libbpf.h > /usr/include/cpufreq.h > /usr/include/cpuidle.h > /usr/lib64/libbpf.a > /usr/lib64/libbpf.so > /usr/lib64/libcpupower.so > > Do you see libbpf as a standalone package or kernel-tools-libs* wuold be ok for you? My preference is definitely on making libbpf a stand-alone package, so people can just install 'libbpf' or 'libbpf-dev{,el}' and are good to go. Also given the pace it's growing these days, it absolutely qualifies as a stand-alone package. > 2) There's already bcc-devel's libbpf library packaged: > > $ rpm -qf /usr/lib64/libbpf.so > bcc-devel-0.8.0-1.fc28.x86_64 > > so there's a conflict.. any chance we could rename libbpf to > something else like: > > libbpf2.so > libbpfobject.so > libbpfbest.so > ...? I don't think we should rename the official libbpf package, this will just create plain confusion and will make it much harder for potential users to adapt in the long-term since we aim for /everyone/ to consume official libbpf library instead of hacking their own. I think bcc folks are migrating to official libbpf as well, at least that was my impression. Imho, this would need fixing on bcc side then. > I checked and I think those 2 conflicting libraries don't make > a valid case for using 'alternatives'. > > Also the libbpf.so from bcc-devel has been there for some time > so we can't just remove/rename it.. ;-) > thoughts? > > > thanks, > jirka > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 12:52 ` Daniel Borkmann @ 2019-03-25 16:03 ` Alexei Starovoitov 2019-03-25 17:19 ` Jiri Olsa 2019-03-25 17:21 ` Michal Rostecki 0 siblings, 2 replies; 9+ messages in thread From: Alexei Starovoitov @ 2019-03-25 16:03 UTC (permalink / raw) To: Daniel Borkmann Cc: Jiri Olsa, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco, Yonghong Song On Mon, Mar 25, 2019 at 5:53 AM Daniel Borkmann <daniel@iogearbox.net> wrote: > > On 03/25/2019 01:21 PM, Jiri Olsa wrote: > > hi guys, > > we want to package libbpf and I'd like to coordinate > > with you on some issues I've met on this: > > > > 1) I think libbpf should be part of kernel-tools-libs and kernel-tools-libs-devel, > > which would look like below (from early rpm build): > > > > $ rpm -qpl kernel-tools-libs-5.0.0-1.fc31.x86_64.rpm > > /usr/lib/.build-id > > /usr/lib/.build-id/ca > > /usr/lib/.build-id/ca/654da1e5ea553f985e28b8d98ad24e51f19e88 > > /usr/lib/.build-id/f6 > > /usr/lib/.build-id/f6/a788b316f26fbe70db47bfc0ef500348117023 > > /usr/lib64/libbpf.so.0 > > /usr/lib64/libbpf.so.0.0.1 > > /usr/lib64/libcpupower.so.0 > > /usr/lib64/libcpupower.so.0.0.1 > > /usr/share/licenses/kernel-tools-libs > > /usr/share/licenses/kernel-tools-libs/COPYING > > > > $ rpm -qpl kernel-tools-libs-devel-5.0.0-1.fc31.x86_64.rpm > > /usr/include/bpf/bpf.h > > /usr/include/bpf/btf.h > > /usr/include/bpf/libbpf.h > > /usr/include/cpufreq.h > > /usr/include/cpuidle.h > > /usr/lib64/libbpf.a > > /usr/lib64/libbpf.so > > /usr/lib64/libcpupower.so > > > > Do you see libbpf as a standalone package or kernel-tools-libs* wuold be ok for you? > > My preference is definitely on making libbpf a stand-alone package, so > people can just install 'libbpf' or 'libbpf-dev{,el}' and are good to > go. Also given the pace it's growing these days, it absolutely qualifies > as a stand-alone package. +1 libbpf should be standalone package and not part of kernel-tools. > > 2) There's already bcc-devel's libbpf library packaged: > > > > $ rpm -qf /usr/lib64/libbpf.so > > bcc-devel-0.8.0-1.fc28.x86_64 > > > > so there's a conflict.. any chance we could rename libbpf to > > something else like: > > > > libbpf2.so > > libbpfobject.so > > libbpfbest.so > > ...? > > I don't think we should rename the official libbpf package, this will > just create plain confusion and will make it much harder for potential > users to adapt in the long-term since we aim for /everyone/ to consume > official libbpf library instead of hacking their own. > > I think bcc folks are migrating to official libbpf as well, at least > that was my impression. Imho, this would need fixing on bcc side then. bcc migrated to libbpf some time ago. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 16:03 ` Alexei Starovoitov @ 2019-03-25 17:19 ` Jiri Olsa 2019-03-25 17:21 ` Michal Rostecki 1 sibling, 0 replies; 9+ messages in thread From: Jiri Olsa @ 2019-03-25 17:19 UTC (permalink / raw) To: Alexei Starovoitov Cc: Daniel Borkmann, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco, Yonghong Song On Mon, Mar 25, 2019 at 09:03:11AM -0700, Alexei Starovoitov wrote: > On Mon, Mar 25, 2019 at 5:53 AM Daniel Borkmann <daniel@iogearbox.net> wrote: > > > > On 03/25/2019 01:21 PM, Jiri Olsa wrote: > > > hi guys, > > > we want to package libbpf and I'd like to coordinate > > > with you on some issues I've met on this: > > > > > > 1) I think libbpf should be part of kernel-tools-libs and kernel-tools-libs-devel, > > > which would look like below (from early rpm build): > > > > > > $ rpm -qpl kernel-tools-libs-5.0.0-1.fc31.x86_64.rpm > > > /usr/lib/.build-id > > > /usr/lib/.build-id/ca > > > /usr/lib/.build-id/ca/654da1e5ea553f985e28b8d98ad24e51f19e88 > > > /usr/lib/.build-id/f6 > > > /usr/lib/.build-id/f6/a788b316f26fbe70db47bfc0ef500348117023 > > > /usr/lib64/libbpf.so.0 > > > /usr/lib64/libbpf.so.0.0.1 > > > /usr/lib64/libcpupower.so.0 > > > /usr/lib64/libcpupower.so.0.0.1 > > > /usr/share/licenses/kernel-tools-libs > > > /usr/share/licenses/kernel-tools-libs/COPYING > > > > > > $ rpm -qpl kernel-tools-libs-devel-5.0.0-1.fc31.x86_64.rpm > > > /usr/include/bpf/bpf.h > > > /usr/include/bpf/btf.h > > > /usr/include/bpf/libbpf.h > > > /usr/include/cpufreq.h > > > /usr/include/cpuidle.h > > > /usr/lib64/libbpf.a > > > /usr/lib64/libbpf.so > > > /usr/lib64/libcpupower.so > > > > > > Do you see libbpf as a standalone package or kernel-tools-libs* wuold be ok for you? > > > > My preference is definitely on making libbpf a stand-alone package, so > > people can just install 'libbpf' or 'libbpf-dev{,el}' and are good to > > go. Also given the pace it's growing these days, it absolutely qualifies > > as a stand-alone package. > > +1 > libbpf should be standalone package and not part of kernel-tools. ok > > > > 2) There's already bcc-devel's libbpf library packaged: > > > > > > $ rpm -qf /usr/lib64/libbpf.so > > > bcc-devel-0.8.0-1.fc28.x86_64 > > > > > > so there's a conflict.. any chance we could rename libbpf to > > > something else like: > > > > > > libbpf2.so > > > libbpfobject.so > > > libbpfbest.so > > > ...? > > > > I don't think we should rename the official libbpf package, this will > > just create plain confusion and will make it much harder for potential > > users to adapt in the long-term since we aim for /everyone/ to consume > > official libbpf library instead of hacking their own. > > > > I think bcc folks are migrating to official libbpf as well, at least > > that was my impression. Imho, this would need fixing on bcc side then. > > bcc migrated to libbpf some time ago. yea, but looks like it still exports its own libbpf.so with some helpers: [jolsa@krava ~]$ nm -D /usr/lib64/libbpf.so.0 ... 0000000000005500 T bpf_attach_kprobe 0000000000005340 T bpf_attach_perf_event 00000000000052a0 T bpf_attach_perf_event_raw 0000000000004b50 T bpf_attach_raw_tracepoint 0000000000004af0 T bpf_attach_socket 0000000000005d10 T bpf_attach_tracepoint 0000000000005810 T bpf_attach_uprobe 0000000000004ea0 T bpf_attach_xdp 0000000000005480 T bpf_close_perf_event_fd 0000000000003990 T bpf_create_map 0000000000003cb0 T bpf_delete_elem 0000000000004b20 T bpf_detach_kprobe 0000000000004b40 T bpf_detach_tracepoint 0000000000004b30 T bpf_detach_uprobe 0000000000003d30 T bpf_get_first_key 0000000000003e70 T bpf_get_next_key 0000000000003c30 T bpf_lookup_elem 0000000000005fb0 T bpf_map_get_fd_by_id 0000000000005e40 T bpf_obj_get 0000000000003ef0 T bpf_obj_get_info 0000000000005dc0 T bpf_obj_pin 0000000000004c10 T bpf_open_perf_buffer 0000000000004d80 T bpf_open_perf_event 0000000000004980 T bpf_open_raw_sock 0000000000003f70 T bpf_prog_compute_tag 0000000000005f30 T bpf_prog_get_fd_by_id 0000000000005eb0 T bpf_prog_get_next_id 00000000000042f0 T bpf_prog_get_tag 0000000000004430 T bpf_prog_load 0000000000003ba0 T bpf_update_elem 00000000000061b0 T perf_reader_event_read 0000000000006520 T perf_reader_fd 0000000000006090 T perf_reader_free 0000000000006120 T perf_reader_mmap 0000000000006030 T perf_reader_new 00000000000063f0 T perf_reader_poll 0000000000006510 T perf_reader_set_fd ... jirka ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 16:03 ` Alexei Starovoitov 2019-03-25 17:19 ` Jiri Olsa @ 2019-03-25 17:21 ` Michal Rostecki 2019-03-25 19:34 ` Yonghong Song 1 sibling, 1 reply; 9+ messages in thread From: Michal Rostecki @ 2019-03-25 17:21 UTC (permalink / raw) To: Alexei Starovoitov Cc: Daniel Borkmann, Jiri Olsa, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco, Yonghong Song On Mon, Mar 25, 2019 at 09:03:11AM -0700, Alexei Starovoitov wrote: > > > 2) There's already bcc-devel's libbpf library packaged: > > > > > > $ rpm -qf /usr/lib64/libbpf.so > > > bcc-devel-0.8.0-1.fc28.x86_64 > > > > > > so there's a conflict.. any chance we could rename libbpf to > > > something else like: > > > > > > libbpf2.so > > > libbpfobject.so > > > libbpfbest.so > > > ...? > > > > I don't think we should rename the official libbpf package, this will > > just create plain confusion and will make it much harder for potential > > users to adapt in the long-term since we aim for /everyone/ to consume > > official libbpf library instead of hacking their own. > > > > I think bcc folks are migrating to official libbpf as well, at least > > that was my impression. Imho, this would need fixing on bcc side then. > > bcc migrated to libbpf some time ago. And the libbpf.so file which is installed with bcc is "our" libbpf. bcc simply uses libbpf (from the auto-synced standalone repo[0]) as a submodule[1]. To package libbpf and bcc properly in Linux distros we need a possibility to use bcc with shared libbpf library - which probably can be achiveved by small change in bcc's CMakeLists.txt. The standalone repo[0] might be a better base for creating a package than full kernel sources. And using %soversion%+git%sha% (i.e. 0.0.2+git33b017) might be a better version pattern of that package. Cheers, Michal [0] https://github.com/libbpf/libbpf [1] https://github.com/iovisor/bcc/blob/master/CMakeLists.txt#L12-L16 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 17:21 ` Michal Rostecki @ 2019-03-25 19:34 ` Yonghong Song 2019-03-25 20:20 ` Jiri Olsa 0 siblings, 1 reply; 9+ messages in thread From: Yonghong Song @ 2019-03-25 19:34 UTC (permalink / raw) To: Michal Rostecki, Alexei Starovoitov Cc: Daniel Borkmann, Jiri Olsa, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco On 3/25/19 10:21 AM, Michal Rostecki wrote: > On Mon, Mar 25, 2019 at 09:03:11AM -0700, Alexei Starovoitov wrote: >>>> 2) There's already bcc-devel's libbpf library packaged: >>>> >>>> $ rpm -qf /usr/lib64/libbpf.so >>>> bcc-devel-0.8.0-1.fc28.x86_64 >>>> >>>> so there's a conflict.. any chance we could rename libbpf to >>>> something else like: >>>> >>>> libbpf2.so >>>> libbpfobject.so >>>> libbpfbest.so >>>> ...? >>> >>> I don't think we should rename the official libbpf package, this will >>> just create plain confusion and will make it much harder for potential >>> users to adapt in the long-term since we aim for /everyone/ to consume >>> official libbpf library instead of hacking their own. >>> >>> I think bcc folks are migrating to official libbpf as well, at least >>> that was my impression. Imho, this would need fixing on bcc side then. >> >> bcc migrated to libbpf some time ago. > > And the libbpf.so file which is installed with bcc is "our" libbpf. bcc > simply uses libbpf (from the auto-synced standalone repo[0]) as a > submodule[1]. To package libbpf and bcc properly in Linux distros we > need a possibility to use bcc with shared libbpf library - which > probably can be achiveved by small change in bcc's CMakeLists.txt. I think we should rename bcc libbpf.so to a different name (maybe libbcc_bpf.so) to avoid confusions between bcc libbpf and libbpf repo. The bcc libbpf.so is different from libbpf repo it contains some wrappers... I will propose to iovisor/bcc mailing list. > > The standalone repo[0] might be a better base for creating a package > than full kernel sources. And using %soversion%+git%sha% (i.e. > 0.0.2+git33b017) might be a better version pattern of that package. > > Cheers, > Michal > > [0] https://github.com/libbpf/libbpf > [1] https://github.com/iovisor/bcc/blob/master/CMakeLists.txt#L12-L16 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 19:34 ` Yonghong Song @ 2019-03-25 20:20 ` Jiri Olsa 2019-03-27 5:30 ` Yonghong Song 0 siblings, 1 reply; 9+ messages in thread From: Jiri Olsa @ 2019-03-25 20:20 UTC (permalink / raw) To: Yonghong Song Cc: Michal Rostecki, Alexei Starovoitov, Daniel Borkmann, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco On Mon, Mar 25, 2019 at 07:34:42PM +0000, Yonghong Song wrote: > > > On 3/25/19 10:21 AM, Michal Rostecki wrote: > > On Mon, Mar 25, 2019 at 09:03:11AM -0700, Alexei Starovoitov wrote: > >>>> 2) There's already bcc-devel's libbpf library packaged: > >>>> > >>>> $ rpm -qf /usr/lib64/libbpf.so > >>>> bcc-devel-0.8.0-1.fc28.x86_64 > >>>> > >>>> so there's a conflict.. any chance we could rename libbpf to > >>>> something else like: > >>>> > >>>> libbpf2.so > >>>> libbpfobject.so > >>>> libbpfbest.so > >>>> ...? > >>> > >>> I don't think we should rename the official libbpf package, this will > >>> just create plain confusion and will make it much harder for potential > >>> users to adapt in the long-term since we aim for /everyone/ to consume > >>> official libbpf library instead of hacking their own. > >>> > >>> I think bcc folks are migrating to official libbpf as well, at least > >>> that was my impression. Imho, this would need fixing on bcc side then. > >> > >> bcc migrated to libbpf some time ago. > > > > And the libbpf.so file which is installed with bcc is "our" libbpf. bcc > > simply uses libbpf (from the auto-synced standalone repo[0]) as a > > submodule[1]. To package libbpf and bcc properly in Linux distros we > > need a possibility to use bcc with shared libbpf library - which > > probably can be achiveved by small change in bcc's CMakeLists.txt. > > I think we should rename bcc libbpf.so to a different name (maybe > libbcc_bpf.so) to avoid confusions between bcc libbpf and libbpf repo. > The bcc libbpf.so is different from libbpf repo it contains some wrappers... that'd be great first step.. then we could add libbpf package and make bcc depend on it as suggested by Michal > > I will propose to iovisor/bcc mailing list. please keep me in cc for that thanks, jirka > > > > > The standalone repo[0] might be a better base for creating a package > > than full kernel sources. And using %soversion%+git%sha% (i.e. > > 0.0.2+git33b017) might be a better version pattern of that package. > > > > Cheers, > > Michal > > > > [0] https://github.com/libbpf/libbpf > > [1] https://github.com/iovisor/bcc/blob/master/CMakeLists.txt#L12-L16 > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-25 20:20 ` Jiri Olsa @ 2019-03-27 5:30 ` Yonghong Song 2019-03-27 7:20 ` Jiri Olsa 0 siblings, 1 reply; 9+ messages in thread From: Yonghong Song @ 2019-03-27 5:30 UTC (permalink / raw) To: Jiri Olsa Cc: Michal Rostecki, Alexei Starovoitov, Daniel Borkmann, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco Jiri, >>>>>> 2) There's already bcc-devel's libbpf library packaged: >>>>>> >>>>>> $ rpm -qf /usr/lib64/libbpf.so >>>>>> bcc-devel-0.8.0-1.fc28.x86_64 >>>>>> >>>>>> so there's a conflict.. any chance we could rename libbpf to >>>>>> something else like: >>>>>> >>>>>> libbpf2.so >>>>>> libbpfobject.so >>>>>> libbpfbest.so >>>>>> ...? >>>>> >>>>> I don't think we should rename the official libbpf package, this will >>>>> just create plain confusion and will make it much harder for potential >>>>> users to adapt in the long-term since we aim for /everyone/ to consume >>>>> official libbpf library instead of hacking their own. >>>>> >>>>> I think bcc folks are migrating to official libbpf as well, at least >>>>> that was my impression. Imho, this would need fixing on bcc side then. >>>> >>>> bcc migrated to libbpf some time ago. >>> >>> And the libbpf.so file which is installed with bcc is "our" libbpf. bcc >>> simply uses libbpf (from the auto-synced standalone repo[0]) as a >>> submodule[1]. To package libbpf and bcc properly in Linux distros we >>> need a possibility to use bcc with shared libbpf library - which >>> probably can be achiveved by small change in bcc's CMakeLists.txt. >> >> I think we should rename bcc libbpf.so to a different name (maybe >> libbcc_bpf.so) to avoid confusions between bcc libbpf and libbpf repo. >> The bcc libbpf.so is different from libbpf repo it contains some wrappers... > > that'd be great first step.. then we could add libbpf > package and make bcc depend on it as suggested by Michal > >> >> I will propose to iovisor/bcc mailing list. > > please keep me in cc for that Do not know your github name, so not able to cc you on the bcc pull request which changes library from libbpf.{a,so} to libbcc_bpf.{a,so}. The below is the link: https://github.com/iovisor/bcc/pull/2290 > > thanks, > jirka > >> >>> >>> The standalone repo[0] might be a better base for creating a package >>> than full kernel sources. And using %soversion%+git%sha% (i.e. >>> 0.0.2+git33b017) might be a better version pattern of that package. >>> >>> Cheers, >>> Michal >>> >>> [0] https://github.com/libbpf/libbpf >>> [1] https://github.com/iovisor/bcc/blob/master/CMakeLists.txt#L12-L16 >>> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: libbpf packaging 2019-03-27 5:30 ` Yonghong Song @ 2019-03-27 7:20 ` Jiri Olsa 0 siblings, 0 replies; 9+ messages in thread From: Jiri Olsa @ 2019-03-27 7:20 UTC (permalink / raw) To: Yonghong Song Cc: Michal Rostecki, Alexei Starovoitov, Daniel Borkmann, Andrey Ignatov, Arnaldo Carvalho de Melo, Song Liu, bpf, Brenden Blanco On Wed, Mar 27, 2019 at 05:30:44AM +0000, Yonghong Song wrote: > Jiri, > > >>>>>> 2) There's already bcc-devel's libbpf library packaged: > >>>>>> > >>>>>> $ rpm -qf /usr/lib64/libbpf.so > >>>>>> bcc-devel-0.8.0-1.fc28.x86_64 > >>>>>> > >>>>>> so there's a conflict.. any chance we could rename libbpf to > >>>>>> something else like: > >>>>>> > >>>>>> libbpf2.so > >>>>>> libbpfobject.so > >>>>>> libbpfbest.so > >>>>>> ...? > >>>>> > >>>>> I don't think we should rename the official libbpf package, this will > >>>>> just create plain confusion and will make it much harder for potential > >>>>> users to adapt in the long-term since we aim for /everyone/ to consume > >>>>> official libbpf library instead of hacking their own. > >>>>> > >>>>> I think bcc folks are migrating to official libbpf as well, at least > >>>>> that was my impression. Imho, this would need fixing on bcc side then. > >>>> > >>>> bcc migrated to libbpf some time ago. > >>> > >>> And the libbpf.so file which is installed with bcc is "our" libbpf. bcc > >>> simply uses libbpf (from the auto-synced standalone repo[0]) as a > >>> submodule[1]. To package libbpf and bcc properly in Linux distros we > >>> need a possibility to use bcc with shared libbpf library - which > >>> probably can be achiveved by small change in bcc's CMakeLists.txt. > >> > >> I think we should rename bcc libbpf.so to a different name (maybe > >> libbcc_bpf.so) to avoid confusions between bcc libbpf and libbpf repo. > >> The bcc libbpf.so is different from libbpf repo it contains some wrappers... > > > > that'd be great first step.. then we could add libbpf > > package and make bcc depend on it as suggested by Michal > > > >> > >> I will propose to iovisor/bcc mailing list. > > > > please keep me in cc for that > > Do not know your github name, so not able to cc you on the bcc pull > request which changes library from libbpf.{a,so} to libbcc_bpf.{a,so}. > The below is the link: > https://github.com/iovisor/bcc/pull/2290 it's olsajiri, that should do it, thanks jirka ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-03-27 7:20 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-03-25 12:21 libbpf packaging Jiri Olsa 2019-03-25 12:52 ` Daniel Borkmann 2019-03-25 16:03 ` Alexei Starovoitov 2019-03-25 17:19 ` Jiri Olsa 2019-03-25 17:21 ` Michal Rostecki 2019-03-25 19:34 ` Yonghong Song 2019-03-25 20:20 ` Jiri Olsa 2019-03-27 5:30 ` Yonghong Song 2019-03-27 7:20 ` Jiri Olsa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).