Comments (4)
With this change, will events specified with dot still work? It doesn't look like it because you replace the name mapping. Should be fine to allow specifying events with underscores, but doted events still need to work. So it would need two entries in the events hash for each event: one with dots, and another with underscores.
BTW not clear what problem this solves? You want to pass events from perf evlist back to ocperf?
from pmu-tools.
Ok it looks like your second patch does just that. Added thanks.
from pmu-tools.
Events with dots will work properly. In my pull-request I added new dictionary for perf-style named events ('perf_events' field) and added one more 'elif' statement to 'getevent' method:
I try to use ocperf.py with JMH (java microbenchmarking framework). JMH is able to run perf (or any other executable if I overwrite environment variable) and parser it's result. JMH memorizes event names which I specified in parameters (I should specify names with dots because these names will be passed to ocperf.py). During perf/ocperf.py output parsing JMH become a bit confused since there is not parameter names I specified (because underlying perf outputs names with underscored only).
Anyway, I believe it's a bit confusing: ocperf.py outputs (right, perf outputs) event names which differ from event names I passed as argument.
BTW, may be it's better to remove '.replace(".", "_")' from Event.output_newstyle method?
from pmu-tools.
from pmu-tools.
Related Issues (20)
- toplev: Info_Bottlenecks reports negative Scaled_Slots on SKX HOT 4
- toplev: Add option to only show bottleneck HOT 2
- toplev: Fix misaligned values in columns when area is too long
- tl-tester sometimes has comparison failures
- toplev does not print multiplex information for all metrics
- toplev: Compute minimum column widths for numbers / units
- toplev should print % for Scaled_Slots
- toplev should support filtering metrics by their threshold HOT 1
- ADL 100% Machine_Clears
- toplev should accumulate and report running time
- Add support for Meteor Lake HOT 1
- Test suite should cover both models for hybrid targets HOT 1
- toplev --run-sample: A requested CPU in '0' is not supported by PMU 'cpu_atom' (CPUs 8-23) for event 'cycles:pp' HOT 3
- toplev add option to only collect bottlenecks, not L1/L2
- MTL support misses Info.Bottlenecks HOT 1
- Trunk version of toplev regressed in generation of valid groups HOT 1
- CLTRAMP3D workload is not available
- Incorrect event for IpCall metric
- event_download returns incorrect list name in hybrid
- How to measure only the second part (a region) of a program? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmu-tools.