We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#define BPF_NO_GLOBAL_DATA #include <vmlinux.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> struct { __uint(type, BPF_MAP_TYPE_HASH); __uint(max_entries, 1024); __type(key, u32); __type(value, u64); } libc_malloc_calls_total SEC(".maps"); SEC("uprobe/benchmark/test:__benchmark_test_function3") int test_update(struct pt_regs *ctx) { u32 key = 0; u64 value = 0; bpf_map_update_elem(&libc_malloc_calls_total, &key, &value, 0); return 0; } SEC("uprobe/benchmark/test:__benchmark_test_function2") int test_delete(struct pt_regs *ctx) { u32 key = 0; u64 value = 0; bpf_map_delete_elem(&libc_malloc_calls_total, &key); return 0; } SEC("uprobe/benchmark/test:__benchmark_test_function1") int test_lookup(struct pt_regs *ctx) { u32 key = 0; u64 value = 0; bpf_map_lookup_elem(&libc_malloc_calls_total, &key); return 0; } char LICENSE[] SEC("license") = "GPL";
How to dump libc_malloc_calls_total maps when running this eBPF prog in user runtime?
libc_malloc_calls_total
The text was updated successfully, but these errors were encountered:
We haven't provide such tools yet. You may write a program that links against bpftime and call APIs like
bpftime/runtime/include/bpftime_shm.hpp
Line 290 in 88a7958
See https://github.com/eunomia-bpf/bpftime/tree/master/example/libbpftime_example for how to use APIs of bpftime
Sorry, something went wrong.
No branches or pull requests
Source Code
Question
How to dump
libc_malloc_calls_total
maps when running this eBPF prog in user runtime?The text was updated successfully, but these errors were encountered: