iovisor / iovisor/bcc

[C++] Unable to insert uprobe at arbitrary file offset?

Open
#3,219 5 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

My purpose is to dynamically instrument a stripped binary with an ability to insert uprobes at arbitrary file offsets (that are aligned to instructions of course, not completely arbitrary).

I've tried to use ```attach_uprobe``` method from C++ API, but it seems to work only when a binary has symbols, whereas Python API seems to support arbitrary offset probing and thus works well with stripped binaries. Do I try to use a wrong method for that purpose or C++ API simply doesn't support it? Thank you in advance.

Kernel version: 5.10.5

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.