[PATCH] tracing: Replace kmap with copy_from_user() in trace_marker writing

2016-12-08 Thread Steven Rostedt
Instead of using get_user_pages_fast() and kmap_atomic() when writing to the trace_marker file, just allocate enough space on the ring buffer directly, and write into it via copy_from_user(). Writing into the trace_marker file use to allocate a temporary buffer to perform the copy_from_user(), as

[PATCH] tracing: Replace kmap with copy_from_user() in trace_marker writing

2016-12-08 Thread Steven Rostedt
Instead of using get_user_pages_fast() and kmap_atomic() when writing to the trace_marker file, just allocate enough space on the ring buffer directly, and write into it via copy_from_user(). Writing into the trace_marker file use to allocate a temporary buffer to perform the copy_from_user(), as