Add the missing pmcstat log entries

Sponsored by:	Innovate UK
This commit is contained in:
Andrew Turner 2021-01-04 18:16:10 +00:00
parent a7d8bd8c23
commit 9fd96b416c

View File

@ -452,6 +452,12 @@ pmcstat_print_log(void)
ev.pl_u.pl_c.pl_pid,
ev.pl_u.pl_c.pl_value);
break;
case PMCLOG_TYPE_PROC_CREATE:
PMCSTAT_PRINT_ENTRY("create","%d %x \"%s\"",
ev.pl_u.pl_pc.pl_pid,
ev.pl_u.pl_pc.pl_flags,
ev.pl_u.pl_pc.pl_pcomm);
break;
case PMCLOG_TYPE_PROCEXEC:
PMCSTAT_PRINT_ENTRY("exec","0x%x %d %p \"%s\"",
ev.pl_u.pl_x.pl_pmcid,
@ -478,6 +484,17 @@ pmcstat_print_log(void)
PMCSTAT_PRINT_ENTRY("exit","%d",
ev.pl_u.pl_se.pl_pid);
break;
case PMCLOG_TYPE_THR_CREATE:
PMCSTAT_PRINT_ENTRY("thr-create","%d %d %x \"%s\"",
ev.pl_u.pl_tc.pl_tid,
ev.pl_u.pl_tc.pl_pid,
ev.pl_u.pl_tc.pl_flags,
ev.pl_u.pl_tc.pl_tdname);
break;
case PMCLOG_TYPE_THR_EXIT:
PMCSTAT_PRINT_ENTRY("thr-exit","%d",
ev.pl_u.pl_tc.pl_tid);
break;
default:
fprintf(args.pa_printfile, "unknown event (type %d).\n",
ev.pl_type);