Comments (5)
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.
great,this is my wanna. Thanks.
and bytheway, could this apply to a kprobe/kretprobe providers ?
from ply.
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.
em. yes, i am interesting with the ability about record. i mistake for it had already implemented.
from ply.
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)
- Segmentation fault due to invalid pointer dereferences when calling ply_fparse
- Segmentation fault in ply_fparse due to null pointer dereference in node_append HOT 3
- Segmentation fault due to null pointer dereference in ply_compile in type_base
- Various basic example failures HOT 8
- arm64 kernel4.19 kprobe & kretprobe all failed. why ? HOT 9
- how can i get a variable value in function with kprobe. HOT 3
- Is it supposed to work on armv7 and 5.10.x kernel? HOT 8
- Can I use it on the board through cross compilation? HOT 1
- How to compile latest ply version 2.1.1 with custom kernel-dir? HOT 3
- arm linux 4.19 'could not link map to queue' HOT 5
- static linking fails HOT 3
- Test failure
- Assertion fails in tracepoint_parse HOT 1
- Support for riscv64 architecture HOT 8
- BEGIN/END print information in wrong position HOT 1
- mips: problem accessing string arguments HOT 3
- ply 'kprobe:do_sys_open { printf("%v(%v): %s\n", comm, uid, str(arg1)); }' can not print filename HOT 4
- use the kprobe provider to obtain a member variable of the input parameter HOT 1
- Build fails with strict-aliasing violations
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 ply.