lkml.org 
[lkml]   [2013]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/7] tracing: Introduce trace_create_cpu_file() and tracing_get_cpu()
From
Date
On Mon, 2013-07-22 at 10:55 -0400, Steven Rostedt wrote:

> The problem is that some files only references the tr for a certain CPU.
> Another data structure was created when the file was opened called
> trace_cpu (tc), which maps a CPU and a trace_array. As there is no

Correction, the trace_cpu is created when the file is created, not when
it was opened.

> global list of trace_cpus, this is susceptible to the above race
> condition. Accessing tc->tr can happen after tc has been freed.




\
 
 \ /
  Last update: 2013-07-22 18:01    [W:0.565 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site