mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
coresight: have trace_printk only log the actual data to STM
The trace_printk, when configured to process printk strings before storing them in the internal ring buffer, currently also logs the complete internal buffer data structure to the STM. Instead it should only log the string output obtained after processing the printk format and arguments. Changing the stm_log call to only log this relevant data. Change-Id: Ia33109f95fb84fa1606247a861deeaedd2f95d3f Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
This commit is contained in:
@@ -1630,7 +1630,7 @@ int trace_array_vprintk(struct trace_array *tr,
|
||||
memcpy(&entry->buf, trace_buf, len);
|
||||
entry->buf[len] = '\0';
|
||||
if (!filter_check_discard(call, entry, buffer, event)) {
|
||||
stm_log(OST_ENTITY_TRACE_PRINTK, event, size);
|
||||
stm_log(OST_ENTITY_TRACE_PRINTK, entry->buf, len + 1);
|
||||
ring_buffer_unlock_commit(buffer, event);
|
||||
ftrace_trace_stack(buffer, irq_flags, 6, pc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user