Giter VIP home page Giter VIP logo

Comments (5)

wkz avatar wkz commented on August 19, 2024

Regarding getting a deeper understanding of ply, have you looked at the manual? https://wkz.github.io/ply/ply.1.html

Can can easily key a map using multiple variables, i.e. something like:

ply 't:sched/sched_wakeup { @[data->comm, data->pid] = count(); }'

You can also use an entire struct as the key:

ply 't:sched/sched_wakeup { @[*data] = count(); }'

Similarly you can also have a struct as the value of a map:

ply 't:sched/sched_wakeup { log[time] = *data; }'

I have though about adding support for creating custom "records" in the same way that you can compose map keys arbitrarily. Something like:

ply 't:sched/sched_wakeup { log[time] = [data->comm, data->pid]; }'

Is that what you are looking for? Could you give an example of what you mean? Or a problem you want to solve?

from ply.

wells39 avatar wells39 commented on August 19, 2024

great,this is my wanna. Thanks.
and bytheway, could this apply to a kprobe/kretprobe providers ?

from ply.

wkz avatar wkz commented on August 19, 2024

Are you saying that you need the record feature that I described at the bottom of my reply, or are you happy with what is already available?

Guessing that you are talking about records, then yes, when implemented, that would apply to all kinds of providers.

from ply.

wells39 avatar wells39 commented on August 19, 2024

em. yes, i am interesting with the ability about record. i mistake for it had already implemented.

from ply.

wkz avatar wkz commented on August 19, 2024

I see, no that is not supported yet I'm afraid. Should be pretty easy to add though.

I'll update the subject of the issue so that I remember what it is about.

from ply.

Related Issues (20)

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.