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

Update with embedded-ebpf uprobe & update CLI with syscall trace #13

Merged
merged 3 commits into from
Sep 30, 2023

Conversation

Officeyutong
Copy link
Contributor

@Officeyutong Officeyutong commented Sep 28, 2023

embeded-ebpf benchmark

This PR adds a benchmark program that can:

  • Directly invokes /vm to execute programs.

This program will be used to be compared with kernel uprobe, uerspace uprobe.

Usage:

  • Build and run cmake target simple-benchmark-with-embed-ebpf-calling

Sample result:

root@mnfe-pve:~/bpftime/build/benchmark# /root/bpftime/build/benchmark/simple-benchmark-with-embed-ebpf-calling
uprobe elf: /root/bpftime/build/benchmark/uprobe_prog.bpf.o
uretprobe elf:/root/bpftime/build/benchmark/uretprobe_prog.bpf.o
a[b] + c for 100000 times
Elapsed time: 0.002924158 seconds
avg function elapse time: 29.241580 ns

CLI update

This PR enhanced the CLI with the feature that can inject text segment transformer into corresponding applications. Use -s argument with attach or start subcommand.

@Officeyutong Officeyutong changed the title Update with embedded-ebpf uprobe Update with embedded-ebpf uprobe & update CLI with syscall trace Sep 29, 2023
@yunwei37 yunwei37 merged commit 34ffe05 into eunomia-bpf:master Sep 30, 2023
Sy0307 pushed a commit to Sy0307/bpftime that referenced this pull request Mar 8, 2025
Summary:
Pull Request resolved: facebookexperimental/moxygen#13

This is the second half of the MoQSession rewrite. subscribe and fetch callers now supply a Consumer which the library drives as a callback.

To make the consumer API work required changing the codec callbacks.

The relay now connects a Forwarder (Consumer) to the upstream subscription directly.

Reviewed By: sharmafb

Differential Revision: D66881617

fbshipit-source-id: c04d1abf1552fe6b8a09861133c8d50995503760
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.

2 participants