Skip to content
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

Notes on understanding how kernel can use BTF #36

Merged
merged 25 commits into from
Jun 11, 2020

Conversation

netoptimizer
Copy link
Member

Keeping notes while trying to understand how we as kernel developers can use BTF from the kernel-side to validate and dynamically extend data provided from userspace.

Trying to share as a GitHub pull-request, not sure it makes sense, but I'm trying to find a way to share it with @LorenzoBianconi and @dsahern

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Record these trace-cmd commands, even-though it was not super
helpfully to debug the issue.   As I found it manually via
looking at the code,

The ftrace output was still useful to understand the kernel
call-graph flow.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This attempt-3 bascally abandon using BTF to solve the kABI issue.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Add cover letter

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Keeping this document around, as it shows how kernel can interact
with the BTF data-structures inside the kernel.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Patchset without BTF V2.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
@netoptimizer
Copy link
Member Author

Going to merge these BTF notes, even-though my idea was not merged upstream.
These notes are still valuable to get an understanding of BTF internals as a kernel developer.

@netoptimizer netoptimizer merged commit cd600fa into master Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant