Date: | Wed, 09 Jan 2019 09:11:32 -0600 |
---|---|
From: | Xiaozhu Meng <mxz297@xxxxxxxxx> |
Subject: | Re: [DynInst_API:] Add a new function |
It looks like you can create your own instrumentation library and use Dyninst to insert calls to the library into the mutatee. Dyninst will properly create linking dependency for the mutatee against the instrumentation library. You can refer to our code coverage code example to see how to program in this way:Âhttps://github.com/dyninst/dyninst/tree/master/examples/codeCoverage.dir On Tue, Jan 8, 2019 at 6:03 AM Buddhika Chamith Kahawitage Don <budkahaw@xxxxxx> wrote:
You can definitely instrument the exits of each function to call a common function. This common function can contain the jump table and resides in your instrumentation library. However, Dyninst does not provide the functionality of creating jump tables. So you will need to do your code generation to create a jump table. Â
You can write the new function in c/c++ and then compile it into your instrumentation library, and then use Dyninst to inject calls to it. Â
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | [DynInst_API:] testsuite v10.0.0 release?, Stan Cox |
---|---|
Next by Date: | Re: [DynInst_API:] testsuite v10.0.0 release?, Knapp, Rashawn L |
Previous by Thread: | Re: [DynInst_API:] Add a new function, Buddhika Chamith Kahawitage Don |
Next by Thread: | Re: [DynInst_API:] Add a new function, Buddhika Chamith Kahawitage Don |
Indexes: | [Date] [Thread] |