Re: [PATCH V2 00/11] perf intel-pt: Add perf event clocks to better support VM tracing
From: Adrian Hunter
Date: Tue Mar 01 2022 - 06:07:02 EST
On 21/02/2022 08:54, Adrian Hunter wrote:
> On 14/02/2022 13:09, Adrian Hunter wrote:
>> Hi
>>
>> These patches add 2 new perf event clocks based on TSC for use with VMs.
>>
>> The first patch is a minor fix, the next 2 patches add each of the 2 new
>> clocks. The remaining patches add minimal tools support and are based on
>> top of the Intel PT Event Trace tools' patches.
>>
>> The future work, to add the ability to use perf inject to inject perf
>> events from a VM guest perf.data file into a VM host perf.data file,
>> has yet to be implemented.
>>
>>
>> Changes in V2:
>> perf/x86: Fix native_perf_sched_clock_from_tsc() with __sched_clock_offset
>> Add __sched_clock_offset unconditionally
>>
>> perf/x86: Add support for TSC as a perf event clock
>> Use an attribute bit 'ns_clockid' to identify non-standard clockids
>>
>> perf/x86: Add support for TSC in nanoseconds as a perf event clock
>> Do not affect use of __sched_clock_offset
>> Adjust to use 'ns_clockid'
>
> Any comments on version 2?
☺/