Skip to contentSkip to conversation

perf/probe: verify instruction/offset in perf before adding a uprobe

PATCH Superseded Prashanth Nageshappa 1 participant 1 message Apr 12, 2012 Memory management

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover perf/probe: verify instruction/offset in perf before adding a uprobe

This patch series is to augment Srikar's perf support for uprobes patch
(https://lkml.org/lkml/2012/4/11/191) with the following features:

a. Instruction verification for user space tracing
b. Function boundary validation support to uprobes as its kernel counterpart (Commit-ID: 1c1bc922).

This will help in ensuring uprobe is placed at right location inside the intended function.

--
Prashanth Nageshappa (1):
address build warnings/errors in insn.c
changes to perf code to verify instruction/offset before adding uprobe

 arch/x86/lib/insn.c                    |    8 +++
 tools/perf/arch/x86/Makefile           |    4 ++
 tools/perf/arch/x86/util/probe-event.c |   83 ++++++++++++++++++++++++++++++++
 tools/perf/util/include/linux/string.h |    1 
 tools/perf/util/probe-event.c          |   22 ++++++++
 tools/perf/util/probe-event.h          |    2 +
 tools/perf/util/symbol.c               |    2 +
 tools/perf/util/symbol.h               |    1 
 8 files changed, 122 insertions(+), 1 deletions(-)
 create mode 100644 tools/perf/arch/x86/util/probe-event.c

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>