Comments (4)
Yes, I think it would be great to have a ply
provider for things like ply:BEGIN
, ply:END
and ply:every:1s
.
The hard thing about this is that there is no context to run the resulting bpf-program in, so I'll have to implement a ply-script interpreter.
from ply.
Ah, right. For now it could be for printf statements only. An interpreter could detect the BEGIN, do the printf's, then remove the BEGIN code from the program and carry on with BPF as normal.
from ply.
The hard thing about this is that there is no context to run the resulting bpf-program in, so I'll have to implement a ply-script interpreter.
Maybe adding uprobe support would make it cleaner? Basically ply would attach uprobe to a bunch of dummy calls that'd trigger bpf execution for ply provider
from ply.
@mlen yeah i guess you could attach them to an internal function in ply
that would only be invoked once for BEGIN
and once for END
.
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
- Maps should be able to store record values (anonymous structs) HOT 5
- 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.