GSC thread stats explanation

Skip to first unread message

Sudip Maitra

Mar 17, 2023, 2:09:29 PMMar 17

When stats are enabled in the manifest file, GSC generates per-thread stats and I wanted to know if it is possible to identify my application thread from other operations (e.g., glibc, libos). Thank you.

Best regards,

Dmitrii Kuvaiskii

Mar 20, 2023, 4:25:42 AMMar 20
to Sudip Maitra,
Hi Sudip,

The short answer is: there is no simple way to map application thread
IDs to Gramine/GSC thread IDs. Sorry...

Typically, you need to know the internals of your application and how
it creates threads. When you know such information, the mapping of
application threads to Gramine threads becomes possible, though I
admit -- it is a bit painful (I typically cut the relevant parts of
the Gramine log into different files, and then just "mentally debug"
them to understand which thread corresponds to which logic in the

If you have any ideas how to map app threads to Gramine threads,
please let us know.
> --
> You received this message because you are subscribed to the Google Groups "Gramine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> To view this discussion on the web visit

Yours sincerely,
Dmitrii Kuvaiskii
Reply all
Reply to author
0 new messages