diff options
author | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-06 18:10:46 -0400 |
---|---|---|
committer | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-06 18:10:46 -0400 |
commit | 34fc1cc81a47fbb3f712a70a2acdb533e2a99090 (patch) | |
tree | b4ce84e968bae9f6c9c11a02ce59c64f3859b62b /runtime/regs-ia64.c | |
parent | 8aa6c571b70f61727b92b4442a645a260b53b52a (diff) | |
parent | 946d18f91669c0fbee36124f0bc06d7cf56aecdf (diff) | |
download | systemtap-steved-34fc1cc81a47fbb3f712a70a2acdb533e2a99090.tar.gz systemtap-steved-34fc1cc81a47fbb3f712a70a2acdb533e2a99090.tar.xz systemtap-steved-34fc1cc81a47fbb3f712a70a2acdb533e2a99090.zip |
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/regs-ia64.c')
-rw-r--r-- | runtime/regs-ia64.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/runtime/regs-ia64.c b/runtime/regs-ia64.c index 2a5a1d17..66dc60f3 100644 --- a/runtime/regs-ia64.c +++ b/runtime/regs-ia64.c @@ -35,7 +35,7 @@ static void ia64_stap_get_arbsp(struct unw_frame_info *info, void *arg) lp->address = 0; } -static long ia64_fetch_register(int regno, struct pt_regs *pt_regs) +static long ia64_fetch_register(int regno, struct pt_regs *pt_regs, unsigned long **cache) { struct ia64_stap_get_arbsp_param pa; @@ -47,12 +47,15 @@ static long ia64_fetch_register(int regno, struct pt_regs *pt_regs) else if (regno < 32 || regno > 127) return 0; - pa.ip = pt_regs->cr_iip; - unw_init_running(ia64_stap_get_arbsp, &pa); - if (pa.address == 0) - return 0; + if (!*cache) { + pa.ip = pt_regs->cr_iip; + unw_init_running(ia64_stap_get_arbsp, &pa); + if (pa.address == 0) + return 0; + *cache = pa.address; + } - return *ia64_rse_skip_regs(pa.address, regno-32); + return *ia64_rse_skip_regs(*cache, regno-32); } static void ia64_store_register(int regno, |