login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
16
Re: [patch 1/1] x86, ptrace: PEBS support
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Markus Metzger <markus.t.metzger@...>
Cc: <andi-suse@...>, <hpa@...>, <linux-kernel@...>, <mingo@...>, <tglx@...>, <markus.t.metzger@...>, <markus.t.metzger@...>, <suresh.b.siddha@...>, <roland@...>, <mtk.manpages@...>, <eranian@...>, <juan.villacis@...>
Subject:
Re: [patch 1/1] x86, ptrace: PEBS support
Date: Tuesday, April 15, 2008 - 8:35 pm
On Tue, 8 Apr 2008 11:01:58 +0200 Markus Metzger <markus.t.metzger@intel.com> wrote:
quoted text
> +static inline void *ds_allocate_buffer(size_t size, unsigned int *pages) > { > - (*(unsigned long *)(base + ds_cfg.bts_interrupt_threshold.offset)) = value; > + unsigned long rlim, vm, pgsz; > + void *buffer; > + > + pgsz = PAGE_ALIGN(size) >> PAGE_SHIFT; > + > + rlim = current->signal->rlim[RLIMIT_AS].rlim_cur >> PAGE_SHIFT; > + vm = current->mm->total_vm + pgsz; > + if (rlim < vm) > + return 0; > + > + rlim = current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur >> PAGE_SHIFT; > + vm = current->mm->locked_vm + pgsz; > + if (rlim < vm) > + return 0;
Should we skip the RLIMIT_MEMLOCK check if capable(CAP_IPC_LOCK)? It's a fairly large patch. --
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 1/1] x86, ptrace: PEBS support
, Markus Metzger
, (Tue Apr 8, 5:01 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, Andrew Morton
, (Tue Apr 15, 8:35 pm)
Re: [patch 1/1] x86, ptrace: PEBS support
, Ingo Molnar
, (Wed Apr 16, 10:47 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, stephane eranian
, (Wed Apr 16, 6:59 pm)
Re: [patch 1/1] x86, ptrace: PEBS support
, Andi Kleen
, (Wed Apr 16, 3:15 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, stephane eranian
, (Wed Apr 16, 4:51 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Linux 2.6.27-rc8
Christoph Lameter
Re: Major regression on hackbench with SLUB (more numbers)
Mike Travis
Re: [RFC 00/15] x86_64: Optimize percpu accesses
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Hugh Dickins
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
623 guests
online.
Syndicate