]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - pagemap.h
Add support for parsing all threads, not just thead parents
[scan-pagemap] / pagemap.h
index 414f4fecd55ad27f36b54d66f58a622eb11e9f6c..3de6650ac4335b5ddfe12e897bd23e8f1bbe1574 100644 (file)
--- a/pagemap.h
+++ b/pagemap.h
@@ -44,6 +44,7 @@ struct maps {
        /* Name of the mapping, such as library name or something else */
        char name[128];
        int pid; /* Process which address space the mapping belongs to */
+       int tid; /* thread id */
 };
 
 #define list_to_maps(list_head)                                \
@@ -53,6 +54,7 @@ struct process {
        struct maps *maps;
        struct list_head list;
        int pid;
+       int tid;
        char name[256];
 
        long int pages_present;