lkml.org 
[lkml]   [2009]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[QUESTION] trace_function_graph: consumed event may be invalid

In get_return_for_leaf() {
......
ring_buffer_consume()
......
access to @curr->ent.pid
}

@curr is saved at consumed event, if this event is the last event
in the page, the ring_buffer may reuse the page. It will become invalid.

Is there any other code to ensure it valid when we `cat trace_pipe`?

Lai.




\
 
 \ /
  Last update: 2009-06-30 10:15    [W:0.039 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site