[ktap] [PATCH] use symbol names instead of hard-coded addresses for uprobe examples

  • From: Azat Khuzhin <a3at.mail@xxxxxxxxx>
  • To: ktap@xxxxxxxxxxxxx
  • Date: Thu, 7 Nov 2013 08:12:18 +0400

Signed-off-by: Azat Khuzhin <a3at.mail@xxxxxxxxx>
---
 README.md       | 4 ++--
 doc/tutorial.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index c8ddd5f..a438356 100644
--- a/README.md
+++ b/README.md
@@ -95,11 +95,11 @@ More information can be found at [ktap homepage][homepage].
 
 7. uprobe tracing
 
-        trace probe:/lib/libc.so.6:0x000773c0 {
+        trace probe:/lib/libc.so.6:malloc {
                 print("entry:", execname(), argevent)
         }
 
-        trace probe:/lib/libc.so.6:0x000773c0%return {
+        trace probe:/lib/libc.so.6:malloc%return {
                 print("exit:", execname(), argevent)
         }
 
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 3c32ce7..47eeb40 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -467,11 +467,11 @@ For more release info, please look at RELEASES.txt in 
project root directory.
 
 7. uprobe tracing
 
-        trace probe:/lib/libc.so.6:0x000773c0 {
+        trace probe:/lib/libc.so.6:malloc {
                 print("entry:", execname(), argevent)
         }
 
-        trace probe:/lib/libc.so.6:0x000773c0%return {
+        trace probe:/lib/libc.so.6:malloc%return {
                 print("exit:", execname(), argevent)
         }
 
-- 
1.8.4.rc3


Other related posts: