login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
16
Re: [patch 1/1] x86, ptrace: PEBS support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [patch 1/1] x86, ptrace: PEBS support
Date: Tuesday, April 15, 2008 - 5: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, 2:01 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, Andrew Morton
, (Tue Apr 15, 5:35 pm)
Re: [patch 1/1] x86, ptrace: PEBS support
, Andi Kleen
, (Wed Apr 16, 12:15 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, stephane eranian
, (Wed Apr 16, 1:51 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, Ingo Molnar
, (Wed Apr 16, 7:47 am)
Re: [patch 1/1] x86, ptrace: PEBS support
, stephane eranian
, (Wed Apr 16, 3:59 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Josef Bacik
[PATCH] fallocate.2: add FALLOC_FL_PUNCH_HOLE flag definition
Rezwanul_Kabir
RE: Dell Studio 1555 eject key does not work ( small patch to fix included )
Rafael J. Wysocki
[Bug #15669] INFO: suspicious rcu_dereference_check()
git
:
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Junio C Hamano
Re: Fwd: git status options feature suggestion
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Bert Wesarg
[TopGit PATCH v3 06/12] list_deps: accept -i/-w
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
misc: replace remaining __FUNCTION__ with __func__
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Darrin Chandler
Re: strange output on openbsd C code
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate