Message ID | 20191219214858.137902679@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | ca4b997b6505df3cebddff2b3075e84f3ae98624 |
Headers | show |
Series | trace-cmd: A couple of fixes | expand |
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c index 3b187e3f135b..5688610fe082 100644 --- a/lib/trace-cmd/trace-input.c +++ b/lib/trace-cmd/trace-input.c @@ -3398,6 +3398,13 @@ tracecmd_buffer_instance_handle(struct tracecmd_input *handle, int indx) new_handle->nr_buffers = 0; new_handle->buffers = NULL; new_handle->ref = 1; + if (handle->trace_clock) { + new_handle->trace_clock = strdup(handle->trace_clock); + if (!new_handle->trace_clock) { + free(new_handle); + return NULL; + } + } new_handle->parent = handle; new_handle->cpustats = NULL; new_handle->hooks = NULL;