-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
info: expose additional bpf_prog_info
fields in ProgramInfo
#1512
Conversation
Hi @tyrone-wu, thanks for your contribution! Please take a look at the comment I wrote in #1515 which explains how to extend the Info API. Please also add tests for the API you're introducing. |
f8c72b7
to
56324bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyrone-wu Ping, are you still interested in merging this? This is good to go IMO with one fixup. I'll pull it out of draft so it's more visible.
Sorry for the delay, I've been caught in some other things. I can definitely get this done by the end of today. 😺 🙏 |
2bef624
to
9fcab04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I'd already left a code review earlier, sorry for the delay.
9fcab04
to
4ad10eb
Compare
Exposes additional metadata fields from `bpf_prog_info` to `ProgramInfo`: - jited_prog_len - xlated_prog_len - load_time - verified_insns Signed-off-by: tyrone-wu <wudevelops@gmail.com>
4ad10eb
to
c63f95d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch! I gave this a quick rebase due to #1563, CI needed to have its toolchain image upgraded.
Hello! 👋
I'm implementing a Telegraf plugin that extracts metadata information from the
bpf_prog_info
object. There's some additional fields that I'd like to include in the metric, that aren't exposed inProgramInfo
.The additional fields that are exposes are:
jited_prog_len
xlated_prog_len
load_time
verified_insns