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

kprobe: fall back to tracefs if kernel doesn't support dots in PMU symbol #605

Merged
merged 3 commits into from Mar 30, 2022

Commits on Mar 30, 2022

  1. link/kprobe: Sanitize kprobe symbol for tracefs

    Since we allow `.` in symbol names, we need to sanitize
    those symbols to please tracefs.
    
    Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
    chenhengqi authored and ti-mo committed Mar 30, 2022
    Copy the full SHA
    e097384 View commit details
    Browse the repository at this point in the history
  2. link/kprobe: Allow fallback to tracefs on old kernels

    Centos 8 (with kernel 4.18) has kprobe PMU support, but
    don't allow `.` in symbol name. Detect such cases and
    fallback to tracefs interface.
    
    Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
    chenhengqi authored and ti-mo committed Mar 30, 2022
    Copy the full SHA
    0814bf4 View commit details
    Browse the repository at this point in the history
  3. link: test - attach k(ret)probe to optimized kernel symbols containin…

    …g dots
    
    These are all local symbols that visible in /proc/kallsyms and traceable
    by kprobes. Make sure the library supports attaching to these.
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed Mar 30, 2022
    Copy the full SHA
    5f13ae3 View commit details
    Browse the repository at this point in the history