os_signpost not appearing in ktrace

It seems like signposts generated with os_signpost() APIs are not appearing in the trace files collected with ktrace (ktrace artrace).

On the other hand, if the signposts are generated with kdebug_signpost APIs - they do show up correctly.

Is this expected behavior?

Specially since the kdebug_signpost APIs are now deprecated?

Thanks. Devendra.

ps: The os_signpost generated signposts do appear if capturing with Instruments app, just that they are not captured by ktrace.

Is this expected behavior?

Yes. OS sign posts are routed to the unified logging store, not the kernel trace buffer.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If you’re deeply wedded to the kerne trace buffer, I’d just keep using kdebug_signpost.

Is there a way for ktrace to collect signposts from unified logging store and embed them in the trace file it creates?

I don’t know. If you want a definitive answer to this, open a DTS tech support incident and we can pick thing up in that context.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

os_signpost not appearing in ktrace
 
 
Q