[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
I've prepared a patch that uses a single long-running instance of addr2line for each dso, instead of one per address request. It dramatically speeds up e.g. `perf script` operation (I don't know if it solves OP's problem but it could be relevant!). Discussion on linux-perf-users mailing list: https://lore.kernel.org/linux-perf- users/20210910102307.2055484-1-to...@leastfixedpoint.com/ Background: https://eighty-twenty.org/2021/09/09/perf-addr2line-speed- improvement -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
As it turns out Ubuntu *did* used to link perf statically: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/783660 So I really don't understand the objection here. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
I too would very much like to see this fixed. As it stands `perf report` is unusable on large binaries on Ubuntu. Seth, I think Jay's arguments are compelling. Do you agree? If I prepared a patch, would that be helpful? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
(Actually, I'm frustrated enough I'm just going to say it explicitly, rather than indirectly: it looks like you didn't read my comment, as even the thrust of your response--that "it's not just about installing different versions of linux-tools"--isn't something I even hinted at as the reason; the most charitable explanation is that you took "parallel installations of this library" to somehow mean linux-tools and not libbfd, but that explanation doesn't help that you then try to inform me of a policy I explained, seem to have the policy wrong, and then didn't respond to any of the other points I made.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
I not only understood that but explicitly stated as such; not just the reasoning, but also the policy... however, that only applies to dynamic linking: other packages--as I also explicitly demonstrated--link against libbfd statically for this very reason; are you saying that there has been a misunderstanding of the policy and they are out of compliance, and that I should file a bug against them--for example, oprofile--citing that "Seth Forshee has stated this package must not be linking against libbfd"? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
It's not just about installing different versions of linux-tools. libbfd has no guarantee of a stable ABI/API, which makes it problematic for external packages to link against them. Thus it is against policy to link against libbfd in Ubuntu, and we simply cannot link perf against it as long as this is the situation. ** Changed in: linux (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1894407] Re: linux-tools: can perf be linked against libbfd, maybe statically?
I am leaving a comment to the effect that my issue is not something for which logs are relevant. ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894407 Title: linux-tools: can perf be linked against libbfd, maybe statically? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs