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

link/kprobe: set the correct size to perf_event_attr #293

Merged
merged 1 commit into from
Apr 27, 2021

Commits on Apr 27, 2021

  1. link/kprobe: set correct perf_event_attr size for PMU uprobes

    This commit sets the size attribute of perf_event_attr.
    If the size is left blank, a struct version PERF_ATTR_SIZE_VER0 is created and
    while this is ok for perf_kprobe, it is not ok for perf_uprobe since they require
    an additional field config2 which got added in version PERF_ATTR_SIZE_VER1.
    
    Additionally, this commit fixes the config attribute for retprobes.
    
    Signed-off-by: Mattia Meleleo <melmat@tuta.io>
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    mmat11 authored and ti-mo committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    9f33caf View commit details
    Browse the repository at this point in the history