Re: Capturing User-Level Function Calls/Returns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: Capturing User-Level Function Calls/Returns
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Wed, 15 Jul 2020 14:28:49 -0400
- Cc: Linux-trace Users <linux-trace-users@xxxxxxxxxxxxxxx>, lttng-dev@xxxxxxxxxxxxxxx, Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>, Jérémie Galarneau <jeremie.galarneau@xxxxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>
- In-reply-to: <e9c7400ff0075f3beba2863c4432a905@ut.ac.ir>
- References: <e9c7400ff0075f3beba2863c4432a905@ut.ac.ir>
On Wed, 15 Jul 2020 20:37:16 +0430
ahmadkhorrami <ahmadkhorrami@xxxxxxxx> wrote:
> Hi,
> What is the most efficient way to capture occurrence of a function
> call/return of a binary program in userspace?
> It seems the answer is Uprobes. 1) Am I right?
> But Uprobes use "int" instruction which leads to a switch into kernel
> mode. 2) Wouldn't it be better to avoid this transition?
> I'm looking forward to your reply and will be happy to read your
> opinions.
> Regards.
Hi, I believe LTTng has utilities that can help you trace user space
programs.
I think there's also a users ftrace like utility that Namhyung was
working on. But I don't know where in the development that is.
-- Steve
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]