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

tetra: Add debug progs command #2967

Merged
merged 3 commits into from
Oct 11, 2024
Merged

tetra: Add debug progs command #2967

merged 3 commits into from
Oct 11, 2024

Commits on Oct 11, 2024

  1. tetra: Add debug progs command

    Adding tetra debug progs command that enables bpf program stats
    and collects them for running programs.
    
    The deault output looks like:
    
      # ./tetra debug progs --once
      2024-10-05 20:59:26.75755952 +0000 UTC m=+1.037895215
    
      Ovh(%)  Id      Cnt     Time    Name                            Pin
        0.00  1934    0       0       event_execve                    /sys/fs/bpf/tetragon/__base__/event_execve/prog
        0.00  1929    0       0       event_exit_acct_process         /sys/fs/bpf/tetragon/__base__/event_exit/prog
        0.00  1931    0       0       event_wake_up_new_task          /sys/fs/bpf/tetragon/__base__/kprobe_pid_clear/prog
        0.00  1937    0       0       tg_kp_bprm_committing_creds     /sys/fs/bpf/tetragon/__base__/tg_kp_bprm_committing_creds/prog
    
    It provides several options to control timeout and repetition,
    all should be described in help.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    26be1b5 View commit details
    Browse the repository at this point in the history
  2. tetragon: Change uprobe attach strings

    We need proper attach string or uprobe programs because they will
    be part of overhead metrics.
    
    Storing attach for standard uprobe, like:
      Attach="/home/jolsa/tetragon/contrib/tester-progs/nop main"
    
    and uprobe multi, like:
      Attach="uprobe_multi (1 functions)"
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ca4568a View commit details
    Browse the repository at this point in the history
  3. tetragon: Add missing policy setup for generic sensors

    We need that for proper overhead metrics.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    c4419e0 View commit details
    Browse the repository at this point in the history