• Stanislav Fomichev's avatar
    bpftool: add bash completion for peek/push/enqueue/pop/dequeue · 55c70bff
    Stanislav Fomichev authored
    bpftool map peek id <TAB>      - suggests only queue and stack map ids
    bpftool map pop id <TAB>       - suggests only stack map ids
    bpftool map dequeue id <TAB>   - suggests only queue map ids
    
    bpftool map push id <TAB>      - suggests only stack map ids
    bpftool map enqueue id <TAB>   - suggests only queue map ids
    
    bpftool map push id 1 <TAB>    - suggests 'value', not 'key'
    bpftool map enqueue id 2 <TAB> - suggests 'value', not 'key'
    
    bpftool map update id <stack/queue type> - suggests 'value', not 'key'
    bpftool map lookup id <stack/queue type> - suggests nothing
    Signed-off-by: default avatarStanislav Fomichev <sdf@google.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    55c70bff
bpftool 24.2 KB