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

Fail if module does not compile #2

Merged
merged 2 commits into from
Apr 26, 2018

Conversation

bobrik
Copy link
Contributor

@bobrik bobrik commented Apr 26, 2018

No description provided.

@bobrik bobrik merged commit af7553e into cloudflare:master Apr 26, 2018
@bobrik bobrik deleted the ivan/check-compiled-module branch October 20, 2022 05:42
@summerzhou2011 summerzhou2011 mentioned this pull request Oct 26, 2023
bobrik added a commit to bobrik/ebpf_exporter that referenced this pull request Feb 27, 2024
Attaching uprobes if fickle and requires function attributes to work properly.
Let's switch to usdt, which have no such downside. The price we pay is
a dependecy on `systemtap-sdt-dev`, which is manageable.

We get nicer attachment code with `BPF_USDT` as a bonus.

The usdt probes can be inspected:

```
ivan@vm:~/projects/ebpf_exporter$ sudo tplist-bpfcc -vv -l tracing/demos/cfs-throttling/demo
ebpf_exporter:cfs_set_parent_span [sema 0x0]
  location #1 tracing/demos/cfs-throttling/demo 0x92f3cc
    argument #1 8 unsigned bytes @ regs[10]
    argument cloudflare#2 8 unsigned bytes @ regs[9]
    argument cloudflare#3 8 unsigned bytes @ regs[8]
  location cloudflare#2 tracing/demos/cfs-throttling/demo 0x92f408
    argument #1 8 unsigned bytes @ regs[13]
    argument cloudflare#2 8 unsigned bytes @ regs[11]
    argument cloudflare#3 8 unsigned bytes @ regs[8]
ebpf_exporter:cfs_clear_parent_span [sema 0x0]
  location #1 tracing/demos/cfs-throttling/demo 0x92f3d8
  location cloudflare#2 tracing/demos/cfs-throttling/demo 0x92f3e0
```
bobrik added a commit to bobrik/ebpf_exporter that referenced this pull request Feb 27, 2024
Attaching uprobes if fickle and requires function attributes to work properly.
Let's switch to usdt, which have no such downside. The price we pay is
a dependecy on `systemtap-sdt-dev`, which is manageable.

We get nicer attachment code with `BPF_USDT` as a bonus.

The usdt probes can be inspected:

```
ivan@vm:~/projects/ebpf_exporter$ sudo tplist-bpfcc -vv -l tracing/demos/cfs-throttling/demo
ebpf_exporter:cfs_set_parent_span [sema 0x0]
  location #1 tracing/demos/cfs-throttling/demo 0x92f3cc
    argument #1 8 unsigned bytes @ regs[10]
    argument cloudflare#2 8 unsigned bytes @ regs[9]
    argument cloudflare#3 8 unsigned bytes @ regs[8]
  location cloudflare#2 tracing/demos/cfs-throttling/demo 0x92f408
    argument #1 8 unsigned bytes @ regs[13]
    argument cloudflare#2 8 unsigned bytes @ regs[11]
    argument cloudflare#3 8 unsigned bytes @ regs[8]
ebpf_exporter:cfs_clear_parent_span [sema 0x0]
  location #1 tracing/demos/cfs-throttling/demo 0x92f3d8
  location cloudflare#2 tracing/demos/cfs-throttling/demo 0x92f3e0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant