On 27 April 2018 at 12:24, Robert Walker Robert.Walker@arm.com wrote:
Hi,
Strobing the ETM to reduce the amount of trace data when collecting profiles for AutoFDO seems to be working and providing useful optimizations. We’re currently working with some proof of concept patches (attached for reference) that add parameters to sysfs to configure the strobe period – before running perf record, the user must write to these parameters for each ETM. This isn’t suitable for production use as it has to be done for each ETM and the values persist after the trace session. To get this into upstream, we need to have this done by the perf record tool.
I understand there is work planned to enable more complex ETM configurations (such as strobing) from perf, possibly using a file to load register values from. Is this still the case, and if so, when is it likely to be done?
Hi Robert,
I am currently working on supporting CPU-wide trace scenarios where I can start seeing the end of the tunnel. After that my plan was to add support for ETMv3.x/PTM trace decoding followed by support for N:N source/sink topology. Part of the latter is to introduce a way to enable more complex ETM configuration using a configuration file. In fact I already stumbled on how I want to do that and have a (very) small prototype that works.
So that is what I had in mind... But it doesn't mean I can't be talked into changing my priorities. In fact I will gladly do so if we, as a group, decide it is more important to introduce support for complex configuration before ETMv3.x/PTM decoding. I personally don't have a preference, it is simply a matter of deciding what we want to do.
I have CC'ed the coresight mailing list in order to reach a broader audience. Please speak up if you really have an issue (along with the rational) with supporting ETM complex configurations before ETMv3.x/PTM decoding.
Best regards, Mathieu
Thanks
Rob
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.