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.

CMakeLists.txt Outdated Show resolved Hide resolved
@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
3 checks passed
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