Re: [PATCH v2 1/4] perf tools: Support Arm arch timer counter

2020-08-21 Thread Leo Yan
Hi Wei, On Thu, Aug 20, 2020 at 10:56:46AM +0800, liwei (GF) wrote: [...] > > +int perf_read_arch_timer_conversion(const struct perf_event_mmap_page *pc, > > + struct perf_arch_timer_conversion *tc) > > +{ > > + bool cap_user_time_zero, cap_user_time_short; > > +

Re: [PATCH v2 1/4] perf tools: Support Arm arch timer counter

2020-08-19 Thread liwei (GF)
Hi Leo On 2020/8/7 15:16, Leo Yan wrote: > The Arm arch timer can be used to calculate timestamp, the basic idea is > the arch timer's counter value can be recorded in the hardware tracing > data, e.g. the arch timer's counter value can be used for Arm CoreSight > (not now but might be implemented

[PATCH v2 1/4] perf tools: Support Arm arch timer counter

2020-08-07 Thread Leo Yan
The Arm arch timer can be used to calculate timestamp, the basic idea is the arch timer's counter value can be recorded in the hardware tracing data, e.g. the arch timer's counter value can be used for Arm CoreSight (not now but might be implemented later) and Arm SPE. So we need a way to convert