iovisor / iovisor/bcc

attach to specific address of user space spplication in c

Open
#5,016 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

Since we can attach ebpf program to any specific address in python using uprobe using the following function
```b.attach_uprobe(name="/usr/bin/bash", addr=event_addr , fn_name="func_name")```

But in c apart from specifying the address in .c file using libbpf-tools we also have to specify symbol in section inside .bpf.c file for uprobe function.So how can we achieve similar functionality in pure c code as well?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.