You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second and third fields are obviously PID and process name.
2086
+
2087
+
The first one is more interesting, and contains the address of the `task_struct` in memory.
2088
+
2089
+
This can be confirmed with:
2090
+
2091
+
....
2092
+
p ((struct task_struct)*0xffff88000ed08000
2093
+
....
2094
+
2095
+
which contains the correct PID for all threads I've tried:
2096
+
2097
+
....
2098
+
pid = 1,
2099
+
....
2100
+
2101
+
TODO get the PC of the kthreads: https://stackoverflow.com/questions/26030910/find-program-counter-of-process-in-kernel Then we would be able to see where the threads are stopped in the code!
but `task_pt_regs` is a `#define` and GDB cannot see defines without `-ggdb3`: https://stackoverflow.com/questions/2934006/how-do-i-print-a-defined-constant-in-gdb which are apparently not set?
0 commit comments