mirror of
https://github.com/drasko/codezero.git
synced 2026-03-17 17:51:50 +01:00
Added helper to extract raw thread id from fully qualified thread id
Currently, the tid returned from kernel contains container id as well, which makes it sufficient to do inter-container syscalls without any preparation. The helpers added are for presentation purposes only. Container id is deleted so that the raw thread id is available for printing or similar.
This commit is contained in:
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
||||
/* Compare two pid strings. We use strings because we dont have atoi() */
|
||||
if (!strcmp(pidbuf, parent_of_all)) {
|
||||
printf("EXECVE TEST -- PASSED --\n");
|
||||
printf("\nThread (%x): Continues to sync with the pager...\n\n", getpid());
|
||||
printf("\nThread (%x): Continues to sync with the pager...\n\n", __raw_tid(getpid()));
|
||||
while (1)
|
||||
wait_pager(pagerid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user