perf intel-pt: Support itrace d+o option to direct debug log to stdout
It can be useful to see debug output in between normal output. Add support for AUXTRACE_LOG_FLG_USE_STDOUT to Intel PT. Reviewed-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20211027080334.365596-7-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
4b2b2c6a7d
commit
624ff63abf
3 changed files with 8 additions and 6 deletions
|
|
@ -82,10 +82,10 @@ static int intel_pt_log_open(void)
|
|||
if (f)
|
||||
return 0;
|
||||
|
||||
if (!log_name[0])
|
||||
return -1;
|
||||
|
||||
f = fopen(log_name, "w+");
|
||||
if (log_name[0])
|
||||
f = fopen(log_name, "w+");
|
||||
else
|
||||
f = stdout;
|
||||
if (!f) {
|
||||
intel_pt_enable_logging = false;
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue