Skip to content

Add support for loading and attaching raw_tracepoint programs#199

Open
tahsinrahman wants to merge 3 commits intoiovisor:masterfrom
tahsinrahman:add-raw-tracepoint
Open

Add support for loading and attaching raw_tracepoint programs#199
tahsinrahman wants to merge 3 commits intoiovisor:masterfrom
tahsinrahman:add-raw-tracepoint

Conversation

@tahsinrahman
Copy link
Copy Markdown

No description provided.

Comment thread elf/module.go Outdated
Name string
insns *C.struct_bpf_insn
fd int
efd int
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Author

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

@el8
Copy link
Copy Markdown

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