Changeset View
Changeset View
Standalone View
Standalone View
lib/libpmc/pmclog.h
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | struct pmclog_ev_proccreate { | ||||
pid_t pl_pid; | pid_t pl_pid; | ||||
uint32_t pl_flags; | uint32_t pl_flags; | ||||
char pl_pcomm[MAXCOMLEN+1]; | char pl_pcomm[MAXCOMLEN+1]; | ||||
}; | }; | ||||
struct pmclog_ev_procexec { | struct pmclog_ev_procexec { | ||||
pid_t pl_pid; | pid_t pl_pid; | ||||
pmc_id_t pl_pmcid; | pmc_id_t pl_pmcid; | ||||
uintfptr_t pl_entryaddr; | uintptr_t pl_baseaddr; | ||||
uintptr_t pl_dynaddr; | |||||
jkoshy: A new log type (say PMCLOG_TYPE_PROCEXEC_PIE and struct pmclog_ev_procexec_pie?) would be… | |||||
Done Inline ActionsIf you have old logs you'll need the old rootfs for those logs, at which point just use the pmcstat from that rootfs jrtc27: If you have old logs you'll need the old rootfs for those logs, at which point just use the… | |||||
Done Inline ActionsAlso, there are other changes which will bump the major version anyway, so it'd still be incompatible. Best to just batch everything up and break it all in one go. jrtc27: Also, there are other changes which will bump the major version anyway, so it'd still be… | |||||
char pl_pathname[PATH_MAX]; | char pl_pathname[PATH_MAX]; | ||||
}; | }; | ||||
struct pmclog_ev_procexit { | struct pmclog_ev_procexit { | ||||
uint32_t pl_pid; | uint32_t pl_pid; | ||||
pmc_id_t pl_pmcid; | pmc_id_t pl_pmcid; | ||||
pmc_value_t pl_value; | pmc_value_t pl_value; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
A new log type (say PMCLOG_TYPE_PROCEXEC_PIE and struct pmclog_ev_procexec_pie?) would be better IMHO.
This would allow pmcstat(1) to process both old and new log file formats for a couple of releases.