[QUESTION] trace_function_graph: consumed event may be invalid
From: Lai Jiangshan
Date: Tue Jun 30 2009 - 04:13:29 EST
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/