Merge branches 'tracing/docs', 'tracing/function-graph-tracer' and 'linus' into tracing/core
This commit is contained in:
@@ -321,7 +321,7 @@ __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)
|
||||
|
||||
memcpy(data->comm, tsk->comm, TASK_COMM_LEN);
|
||||
data->pid = tsk->pid;
|
||||
data->uid = tsk->uid;
|
||||
data->uid = task_uid(tsk);
|
||||
data->nice = tsk->static_prio - 20 - MAX_RT_PRIO;
|
||||
data->policy = tsk->policy;
|
||||
data->rt_priority = tsk->rt_priority;
|
||||
|
||||
@@ -592,6 +592,12 @@ print_graph_comment(struct print_entry *trace, struct trace_seq *s,
|
||||
if (ent->flags & TRACE_FLAG_CONT)
|
||||
trace_seq_print_cont(s, iter);
|
||||
|
||||
/* Strip ending newline */
|
||||
if (s->buffer[s->len - 1] == '\n') {
|
||||
s->buffer[s->len - 1] = '\0';
|
||||
s->len--;
|
||||
}
|
||||
|
||||
ret = trace_seq_printf(s, " */\n");
|
||||
if (!ret)
|
||||
return TRACE_TYPE_PARTIAL_LINE;
|
||||
|
||||
Reference in New Issue
Block a user