Date: | Sun, 22 Apr 2018 19:49:48 +0000 (UTC) |
---|---|
From: | budchan chao <cbudchan@xxxxxxxxx> |
Subject: | [DynInst_API:] Logging the stack trace |
I want to use Dyninst to trace the runtime stack. I was thinking doing a call out to an instrumentation function at each function entry which would accept the dereferenced rsp value (which will be the return address at the function entry) as an argument and log it within this instrumentation function which I load from a shared library. I am not quite sure how to get the dereferenced register value and do the function call using it as an argument. I see Bpatch_registerExpr but I am not sure how to initialize with the dereferenced rsp register value. Can somebody give me a pointer on how to do this? Or is there a better of doing it? Thanks |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | [DynInst_API:] [dyninst/dyninst] a93bcf: basic support for EM_CUDA binary type, Bill Williams |
---|---|
Next by Date: | [DynInst_API:] Research staff positions open at UW-Madison (Dyninst related), Barton Miller |
Previous by Thread: | Re: [DynInst_API:] libsymtabAPI has undefined reference dwarf_next_lines@xxxxxxxxxxxxxx, Sasha Da Rocha Pinheiro |
Next by Thread: | Re: [DynInst_API:] Logging the stack trace, Xiaozhu Meng |
Indexes: | [Date] [Thread] |