-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aya is missing query features #2
Comments
The query I'm thinking should probably be a helper function in the fn query<T: AsRawFd>(target_fd: T, attach_type: XXX, flags: u32) -> Result<(Vec<u32>, u32), io::Error> Where the result is a To get the name then you'd use a separate syscall right? As for detaching, I'm not sure yet what we could do. I know I want to add a |
I do wonder if it is possible to create a higher level of abstraction than |
Yes you're right, we should definitely create a higher level API. I guess my thinking was that coming up with a higher level interface would probably require some work (see below), so we could start by wrapping the syscall. Now that I've thought about it though, I think I was overthinking it. Agreed on So yeah, this is easier than I first thought :) |
@seanyoung are you planning to do or have you done any work on this? Otherwise I might get to it next week |
@alessandrod I had started on this, see my query branch https://github.com/seanyoung/aya/commits/query. The query of programs and their names works, but not detaching or any other field than name. There are some issues which I haven't figured out yet. This where I am at.
So I was kind of stuck on how to model this. The QueryProgram isn't going to work for detaching, but will work for a generic info querying. |
Looks like #32 was meant to close this. |
libbpf has the
bpf_prog_query()
function to get a list of the all attached programs; it is also possible to deattach them and get their names.I am currently re-writing
ir-keytable
in rust https://github.com/seanyoung/ir (early stages). For aya to be useful for this work, it would require this functionality.The text was updated successfully, but these errors were encountered: