address-space identification for /proc

Message ID 20001026154527.A30463@goop.org
State New, archived
Headers show
Series
  • address-space identification for /proc
Related show

Commit Message

Jeremy Fitzhardinge Oct. 26, 2000, 10:45 p.m. UTC
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

Comments

Jeremy Fitzhardinge Oct. 26, 2000, 10:52 p.m. UTC | #1
On Thu, Oct 26, 2000 at 03:45:27PM -0700, I wrote:
> +	buffer += sprintf("ASID: %p\n", mm);

Obviously, this should be:

+	buffer += sprintf("ASID:\t%p\n", mm);

for consistency.

	J

Patch

--- ../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;
 }