From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Linux Kernel <linux-kernel@vger.kernel.org>, linus@goop.org
Subject: [PATCH] address-space identification for /proc
Date: Thu, 26 Oct 2000 15:45:27 -0700 [thread overview]
Message-ID: <20001026154527.A30463@goop.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 313 bytes --]
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
[-- Attachment #1.2: asid.diff --]
[-- Type: text/plain, Size: 296 bytes --]
--- ../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;
}
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
next reply other threads:[~2000-10-26 22:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 22:45 Jeremy Fitzhardinge [this message]
2000-10-26 22:52 ` [PATCH] address-space identification for /proc Jeremy Fitzhardinge
2000-10-26 23:01 ` Johannes Erdfelt
2000-10-27 1:21 ` Jeremy Fitzhardinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001026154527.A30463@goop.org \
--to=jeremy@goop.org \
--cc=linus@goop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).