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

  • From: Jovi Zhangwei <jovi.zhangwei@xxxxxxxxx>
  • To: ktap@xxxxxxxxxxxxx
  • Date: Thu, 7 Nov 2013 12:42:36 +0800

On Thu, Nov 7, 2013 at 12:12 PM, Azat Khuzhin <a3at.mail@xxxxxxxxx> wrote:
> 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
>
Applied, Thanks a lot, Azat.

Jovi

Other related posts: