Giter Club home page Giter Club logo

Comments (6)

acln0 avatar acln0 commented on August 20, 2024 1

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.

pwaller avatar pwaller commented on August 20, 2024

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.

acln0 avatar acln0 commented on August 20, 2024

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.

pwaller avatar pwaller commented on August 20, 2024

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.

simplejackcoder avatar simplejackcoder commented on August 20, 2024

@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.

pwaller avatar pwaller commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.