lkml.org 
[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 18/30] x86, kaiser: map virtually-addressed performance monitoring buffers
On Fri, Nov 10, 2017 at 11:31:39AM -0800, Dave Hansen wrote:
> static int alloc_ds_buffer(int cpu)
> {
> + struct debug_store *ds = per_cpu_ptr(&cpu_debug_store, cpu);
>
> + memset(ds, 0, sizeof(*ds));

Still wondering about that memset...

> per_cpu(cpu_hw_events, cpu).ds = ds;
>
> return 0;

\
 
 \ /
  Last update: 2017-11-14 19:21    [W:0.443 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site