How to get PC from ucontext_t structure
807575Aug 7 2007 — edited Aug 10 2007Hi,
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, ¶m );
}
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, ¶m );
The Question is : how can I get a PC if I already know context?
Thanks,
Nikolay