Add task_struct address in linux r2k procinfo

This commit is contained in:
pancake 2018-05-25 14:31:16 +02:00
parent 9cb30f102a
commit 3e619bff12
2 changed files with 2 additions and 0 deletions

View File

@ -738,6 +738,7 @@ int run_old_command(RIO *io, RIODesc *iodesc, const char *buf) {
}
} else {
io->cb_printf ("pid = %d\nprocess name = %s\n", proc_data.pid, proc_data.comm);
io->cb_printf ("task_struct = 0x%08"PFMT64x"\n", proc_data.task);
for (i = 0; i < buffsize;) {
nextstart = 0;
if (i + 7 < buffsize) {

View File

@ -75,6 +75,7 @@ struct r2k_proc_info {
char comm[16];
size_t vmareastruct[4096];
size_t stack;
size_t task;
};
#define R2_TYPE 0x69