From a21ffd53d3064a428d6963f7c088a6970067b294 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 5 Aug 2011 12:42:04 +0200 Subject: [PATCH] context-unwind.stp: More STAPCONF_UPROBE_GET_PC wrapping. --- tapset/context-unwind.stp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tapset/context-unwind.stp b/tapset/context-unwind.stp index 47599821a..fb25555ad 100644 --- a/tapset/context-unwind.stp +++ b/tapset/context-unwind.stp @@ -96,8 +96,10 @@ function caller:string() { function caller_addr:long () %{ /* pure */ if (CONTEXT->probe_type == _STP_PROBE_HANDLER_KRETPROBE) THIS->__retvalue = (int64_t)(long)_stp_ret_addr_r(CONTEXT->ips.krp.pi); +#ifdef STAPCONF_UPROBE_GET_PC else if (CONTEXT->probe_type == _STP_PROBE_HANDLER_URETPROBE) THIS->__retvalue = (int64_t)(long)_stp_ret_addr_r(CONTEXT->ips.ri); +#endif else THIS->__retvalue = 0; %} -- 2.43.5