Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - question for procnto-booke and procnto-booke-instr kernels: (5 Items)
   
question for procnto-booke and procnto-booke-instr kernels  
Hi all,

a quick question.

If I wrote program running on procnto-booke kernel, does the program also be able to run on procnto-booke-instr kernel 
if I changed BSP image from procnto-booke to procnto-booke-instr?

Thanks
Re: question for procnto-booke and procnto-booke-instr kernels  
To my understanding, no modifications are necessary. Just replace boot image and reboot target.

There could be restrictions the other way round: If you place calls to TRACE_EVENT in your code these functions will 
fail if executed on a non-instrumented kernel.

-Al
Re: question for procnto-booke and procnto-booke-instr kernels  
> To my understanding, no modifications are necessary. Just replace boot image 
> and reboot target.
> 
> There could be restrictions the other way round: If you place calls to 
> TRACE_EVENT in your code these functions will fail if executed on a non-
> instrumented kernel.
> 
> -Al

Hi Albrecht,

Thanks replying.

Then, it is weird. After I replace with instr kernel image, some of my processes become zombies. any idea? 
Re: question for procnto-booke and procnto-booke-instr kernels  
In that case we would need more information.

- can you post the build script that you use to create the boot image?
- are you sure all settings/env vars etc. are the same, only procnto replaced with instrumented version?
- How are you launching you processes?
- How do they terminate? (external signal, from their own)?

It might be possible that the instrumented procnto behaves differently regarding process termination, maybe someone from
 QNX can comment on this after reviewing your data.

Regards,
-Al
Re: question for procnto-booke and procnto-booke-instr kernels  
> In that case we would need more information.
> 
> - can you post the build script that you use to create the boot image?
> - are you sure all settings/env vars etc. are the same, only procnto replaced 
> with instrumented version?
> - How are you launching you processes?
> - How do they terminate? (external signal, from their own)?
> 
> It might be possible that the instrumented procnto behaves differently 
> regarding process termination, maybe someone from QNX can comment on this 
> after reviewing your data.
> 
> Regards,
> -Al

To be honest, I dont think the env variable or settings are same, cuz i just tried to load with procnto. it still fails 
some of my processes.

Thanks