So, if I want to put a probe in libc.so, it ends up being executed by every process on the system?
Presumably I would have to have write permissions to libc to do so - so if gdb was to use this, I wouldn't be able to set breakpoints on library functions unless I'm root? That sounds like a nonstarter to me.
Posted Mar 24, 2011 17:41 UTC (Thu) by fuhchee (subscriber, #40059)
[Link]
A future gdb interface for this functionality would not require nor give you any new privileges. Probes would be naturally restricted to your processes. No actual writing to the disk files is done.
Systemtap has the same properties w.r.t. the older utrace/uprobes it carries: a root user can operate systemwide, and an unprivileged user can operate upon her own processes.