Re: [DynInst_API:] Add a new function


Date: Wed, 09 Jan 2019 09:41:18 +0530
From: Buddhika Chamith Kahawitage Don <budkahaw@xxxxxx>
Subject: Re: [DynInst_API:] Add a new function
Greatly appreciate any feedback.

Best

On Tue, Jan 8, 2019 at 5:33 PM Buddhika Chamith Kahawitage Don <budkahaw@xxxxxx> wrote:
Actually I have two use cases.

1. Create a jump table and insert it to the binary and make the each function epilog instrumentation jump to it.
2. Introduce a new function which does some initialization and inject a call to it after the function main prolog.

Does it look doable?

Thanks
Buddhika


On Mon, Jan 7, 2019 at 8:53 PM Xiaozhu Meng <mxz297@xxxxxxxxx> wrote:
Hi,

Yes, you can add new functions. But depending on what exactly you want to do with the added function, there are different ways to do it.

For example, do you want to call this new function in your instrumentation? Do you want to add a new interface into a shared library?ÂÂ

Let me know the details so that we can find the best way to do it.

Thanks,

--Xiaozhu

On Sun, Jan 6, 2019 at 12:50 AM Buddhika Chamith Kahawitage Don <budkahaw@xxxxxx> wrote:
Hi All,

Is it possible to add new function to the binary using Dyninst APIs?

Cheers
Buddhika
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]