Skip to content
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

Add support for loading and attaching raw_tracepoint programs #199

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tahsinrahman
Copy link

No description provided.

elf/module.go Outdated
Name string
insns *C.struct_bpf_insn
fd int
efd int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is efd used anywhere?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, removed it.
Also added closeRawTracepointPrograms method

../../iovisor/gobpf/elf/module.go: In function
‘bpf_attach_raw_tracepoint’:
../../iovisor/gobpf/elf/module.go:97:29: warning: implicit declaration
of function ‘ptr_to_u64’; did you mean ‘strtoull’?
[-Wimplicit-function-declaration]
  attr.raw_tracepoint.name = ptr_to_u64(tp_name);
                             ^~~~~~~~~~
                             strtoull
@tahsinrahman
Copy link
Author

hi @alban, can I get a code review of this!

@el8
Copy link

el8 commented May 26, 2021

Any reasons for not supporting raw tracepoints with elf and merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants