--- hurd/procfs/process.c 2019-10-26 23:12:40.495359917 +0200 +++ hurd~/procfs/process.c 2019-10-27 20:18:26.114993614 +0100 @@ -221,14 +221,26 @@ struct procinfo *pi = proc_stat_proc_info (ps); task_basic_info_t tbi = proc_stat_task_basic_info (ps); thread_basic_info_t thbi = proc_stat_thread_basic_info (ps); + thread_sched_info_t thsi = proc_stat_thread_sched_info (ps); const char *fn = args_filename (proc_stat_args (ps)); + integer_t last_processor = 0; + vm_address_t start_code = 1; /* 0 would make killall5.c consider it a kernel process, thus use 1 as default. */ vm_address_t end_code = 1; process_t p; error_t err = proc_pid2proc (ps->context->server, ps->pid, &p); + + + if(sizeof(thsi) >= THREAD_SCHED_INFO_COUNT){ + last_processor = thsi->last_processor; + } + else{ + last_processor = 0; + } + if (! err) { boolean_t essential = 0; @@ -286,7 +298,7 @@ (long unsigned) proc_stat_thread_rpc (ps), /* close enough */ 0L, 0L, 0, - 0, + (long unsigned) last_processor, 0, 0, 0LL); }