[lkml]   [2009]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: [patch 03/20] x86, ptrace, bts: defer branch trace stopping
>-----Original Message-----
>From: Peter Zijlstra []
>Sent: Friday, April 03, 2009 5:01 PM
>To: Metzger, Markus T

>Also, I can't say I like the name, what about something like:
>void account_locked_buffer(struct mm_struct *mm, long pages)
> down_write(&mm->mmap_sem);
> mm->total_vm += pages;
> mm->locked_vm += pages;
> up_write(&mm->mmap_sem);
>but looking more closely at that alloc_locked_buffer() stuff, I really
>hate it, who in his right mind does a multi-page kmalloc() -- that's

I need a non-pageable chunk of memory to give to the cpu to store branch
trace data in. Kmalloc() is easy to use and gives me what I need.

How would I do this correctly?

Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

 \ /
  Last update: 2009-04-04 09:21    [W:0.106 / U:2.332 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site