<div dir="ltr">Thanks Roman,<br><br>To elaborate a bit, you can tell which host CPU llvm detected by looking at the `cpu_name` field in llvm-exegesis output for latency, something like:<div><br>cpu_name:        haswell<br></div><div><br></div><div>And check that this one has a PfmCountersBinding in X86PfmCounter.td, and that it's correct.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2019 at 3:42 PM Roman Lebedev <<a href="mailto:lebedev.ri@gmail.com">lebedev.ri@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That means the pfm counters are not specified correctly for that CPU.<br>
You'll need to patch X86PfmCounter.td<br>
Please do submit that patch to <a href="https://reviews.llvm.org/" rel="noreferrer" target="_blank">https://reviews.llvm.org/</a> afterwards!<br>
<br>
Roman<br>
<br>
On Tue, Dec 17, 2019 at 5:39 PM Milos Stojanovic via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hello,<br>
> I've been testing llvm-exegesis on X86. Latency and inverse_throughput modes work fine but when I run uops I get an error:<br>
><br>
> event not found - cannot create event uops_dispatched_port:port_0<br>
> LLVM ERROR: invalid perf event 'uops_dispatched_port:port_0'<br>
><br>
> I'm running this on a i7-4790K. Am I missing something on my computer or is this not yet fully implemented?<br>
><br>
> This also affects the llvm-exegesis lit tests and they all get skipped becuse the configuration script determines that uops doens't work. This could be changed so that the tests still run the modes that work (latency and inverse_throughput in my case).<br>
><br>
> Regards<br>
> Miloš _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>