login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
30
Re: [PATCH] Add rlimits to /proc/<PID>/status
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: Clifford Wolf <clifford@...>
Cc: lkml <linux-kernel@...>
Subject:
Re: [PATCH] Add rlimits to /proc/<PID>/status
Date: Friday, May 30, 2008 - 5:46 pm
On Fri, 2008-05-30 at 22:11 +0200, Clifford Wolf wrote:
quoted text
> Signed-off-by: Clifford Wolf <clifford@clifford.at> > --- > fs/proc/array.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 57 insertions(+), 0 deletions(-) > > diff --git a/fs/proc/array.c b/fs/proc/array.c > index 9e3b8c3..3cb2ad3 100644 > --- a/fs/proc/array.c > +++ b/fs/proc/array.c > @@ -242,6 +242,62 @@ static void collect_sigign_sigcatch(struct task_struct *p, sigset_t *ign, > } > } > > +static const char *rlim_names[RLIM_NLIMITS] = { > + [RLIMIT_CPU] = "CPU", > + [RLIMIT_FSIZE] = "FSize", > + [RLIMIT_DATA] = "Data", > + [RLIMIT_STACK] = "Stack", > + [RLIMIT_CORE] = "Core", > + [RLIMIT_RSS] = "RSS", > + [RLIMIT_NPROC] = "NProc", > + [RLIMIT_NOFILE] = "NoFile", > + [RLIMIT_MEMLOCK] = "MemLock", > + [RLIMIT_AS] = "AddrSpace", > + [RLIMIT_LOCKS] = "Locks", > + [RLIMIT_SIGPENDING] = "SigPending", > + [RLIMIT_MSGQUEUE] = "MsgQueue", > + [RLIMIT_NICE] = "Nice", > + [RLIMIT_RTPRIO] = "RTPrio", > + [RLIMIT_RTTIME] = "RTTime" > +};
fs/proc/base.c already has an array with strings in it --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Add rlimits to /proc/<PID>/status
, Clifford Wolf
, (Fri May 30, 4:11 pm)
Re: [PATCH] Add rlimits to /proc/<PID>/status
, Peter Zijlstra
, (Fri May 30, 5:46 pm)
Re: [PATCH] Add rlimits to /proc/<PID>/status
, Hugh Dickins
, (Fri May 30, 5:35 pm)
Re: [PATCH] Add rlimits to /proc/<PID>/status
, Clifford Wolf
, (Fri May 30, 6:50 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Rob Landley
What still uses the block layer?
git
:
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Alexey Dobriyan
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
786 guests
online.
Online users
partygirl
blueair7tu
Syndicate