Messages in this thread Patch in this message |  | | Date | Thu, 26 Oct 2000 15:45:27 -0700 | From | Jeremy Fitzhardinge <> | Subject | [PATCH] address-space identification for /proc |
| |
Hi,
/proc has no way to indicate whether tasks share an address space. This one-liner patch adds a new ASID: field to /proc/<pid>/status so there's some way to see address-space sharing between tasks.
While this is hardly a bug-fix, it is a pretty useful thing to know which is otherwise completely absent.
J --- ../2.3/fs/proc/array.c Mon Oct 9 17:03:53 2000 +++ linux/fs/proc/array.c Thu Oct 26 15:20:52 2000 @@ -294,6 +294,7 @@ for(line=0;(len=sprintf_regs(line,buffer,task,NULL,NULL))!=0;line++) buffer+=len; #endif + buffer += sprintf("ASID: %p\n", mm); return buffer - orig; } [unhandled content-type:application/pgp-signature] |  |