Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get PC from ucontext_t structure

807575Aug 7 2007 — edited Aug 10 2007
Hi,
I am getting some performance tuning and stumble on following problem:
optimize_me(){
ucontext_t context;
int err, param
err = getcontext ( &context );
err = walkcontext( &context,my_fn, &param );
}
The problem seem to be in calling walkcontext too often, so I would like to avoid it and do something like:
if (PC == interesting)
err = walkcontext( &context,my_fn, &param );
The Question is : how can I get a PC if I already know context?

Thanks,
Nikolay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2007
Added on Aug 7 2007
2 comments
311 views