Comments (6)
The man page for PERF_FLAG_FD_OUTPUT says "broken since Linux 2.6.35". My memory is a little hazy, but I believe you're meant to use PERF_EVENT_IOC_SET_OUTPUT, which is (*Event).SetOutput in this API.
from perf.
If it might require a change to the signature of Open, it seems worth fixing before trying to publish this in golang.org/x/...
from perf.
Please let me know if that works as expected. I see now there is a big comment on SetOutput, and I don't remember all the details.
from perf.
I'm yet to succeed at getting this to work but I've only had limited time to try so far. It seems to make sense to me.
However, what if the kernel introduces a new useful flag in the future?
How could they be specified then? Given current use cases it seems all good, though, so I'm happy to close this.
from perf.
@pwaller were you able to successfully achieve your goal? I also would like to reduce the number of ring buffers I need to consume. Your reason is better than mine (ordering guaranteed by the kernel).
But then you also mention you were unable to make it work. It is my understanding that this functionality (setting the output) is used by BPF so it is not considered broken.
from perf.
I don't think I got to the end of my journey of trying to get BPF working as I wanted to. Please file another issue if you have another legitimate use case for it. I'm going to close this one for now.
from perf.
Related Issues (16)
- Tracepoint Configurator could be more clever
- Failing tests with -test.count=10 HOT 4
- Tests fail as user with paranoid=1 HOT 3
- Confusing code HOT 1
- Use Errorf instead of Fatalf in test failures where possible
- Samples# dramatically decreases if preciseIP is non-zero. HOT 1
- Missing events due to early return on perfhup
- EBADF in testComm HOT 6
- Revisit testComm waiting on sawcommevfd
- Idea: perf.Command HOT 3
- The way forward for the perf package HOT 3
- (*perf.Group).Options are not respected after g.Add() HOT 3
- Is CallingThread correctly named? HOT 2
- Other things from `perf list`, e.g. hw_interrupts.received HOT 5
- Should perf.Tracepoint work as part of a group? HOT 3
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 perf.