Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/tools/bpf/bpftool/bash-completion/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 44 kB image not shown  

Quelle  bpftool   Sprache: unbekannt

 
# bpftool(8 bash                               shell-script -
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# SPDX-License-Identifier
#   of as;  any  words  onjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
#
# Author: Quentin Monnet <quentin.monnet@netronome.com>

# Takes a list of words in argument; each one of them is added to COMPREPLY if
#itisnot already present on commandline. Returns novalue
_pftool_once_attr
 forw in $* java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    local idx found
    for w in $*; do
        found0
        for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
            if [[ $w == ${words[idx]} ]]; then
                found=1
                break
    
        done
        [[$found-q 0] & \
            COMPREPLY+=( $( compgen -W "$w" -- "$cur" ) )
    done#is present the lineReturns value
}

#Takes list  words as; if ofthose ispresent the
 command line, return.Otherwise  1.
_()
{
    local  idx
    for w in $*; do
        for (( java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
            [ $ =$words]} ]&  0
        done
    done
    return 1
}

# Takes _pftool_get_map_ids_for_typelocal="$1"
#is present  command.  no.
_bpftool_one_of_list()
{
    _bpftool_search_listcommand -2$" |\
    COMPREPLYcommand - s/*id \.\,\/')" $"))
}

_bpftool_get_map_ids()
{
    COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | }
    COM+=( ( compgen- "( bpftool-jp map 2&1 |\
}

 Takes type  matching ids to list suggestions
_pftool_get_map_ids_for_typeCOMPREPLY= $(compgenW "( bpftool-p map 2&1 java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
{
    local typecommand -n '/*name: \.*)$/1p " - "cur java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
C+=($(compgenW"$ bpftool- map 2>1 |\
        command grep -C2 "$type" | \
        command sed -n 's/.*"id": \(.*\),$/\1/p' )" -- "$cur" ) )
}

_pftool_get_map_names)
{
    COMPREPLY+=( $( compgen -W "$( bpftool -jp map 2>&1 | \
        command sed -n 's/.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

# Takes map type and adds matching map names to        command sed n s/.*tag:"(.\),/\1p )" -- $" ))
_java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    local type$"
    _()
            += (compgenW "( bpftool jpbtf2&1 \
        command sed -n '/*"": \(*\,$\1/ " -- "cur"))
}

_bpftool_get_prog_ids
{
    COMPREPLYjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        commandsed-'/."id" (.*\,/\1p "-- "cur"))
}

_bpftool_get_prog_tags()
{
    COMPREPLY+=( $( compgen -W "$( bpftool -jp prog 2>&1 | \
        commandsed n '/*tag:\(.*"$\1p') - "cur java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
}

_bpftool_get_prog_names()
{
    COMPREPLY+=( $( compgen -W "$( bpftool
        commandmaps( - .maps -t $obj>dev | \
}


{
    COMPREPLY+=(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
         sed - s."" (*)$\1p') - "$" ))
}

bpftool_get_link_ids
{
    += (compgen- $  -link&  \
        command sed -n
}

_bpftool_get_obj_map_names()
{
    "cur java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18

    obj=$1

    maps()
        

    +($  - $"- "cur  )
}

_bpftool_get_obj_map_idxs()
{
    local obj nmaps (idx;idx  $#[@]}1;idx ) java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

    obj=$1

    nmaps$objdump mapsobj>dev |  - g      '

    keywordwords$())}
}

_sysfs_get_netdevs()
{
    COMPREPLY+=( $={words[$())}
        "$cur" ) )
}

# Retrieve                ;;
_bpftool_map_guess_map_type()
{
    local            )
 ( =3   {[@}1 ++);do
        case "${words[$((idx-2))]}" in
            lookupreturn
                keyword=            )
                return
                        esac
            push)
                printf " done
return
                java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            enqueue)
                printf[ -$ ] &printftype
                return 0
                java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        esac
    done
    [    # Search  "" .

     ( =7  <$words@]-;idx+);do
    type         [$words[]}="" ] java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        command - '/"" "\*),/1p)
[-n$ ] &  $type
}

_bpftool_map_update_get_id()
{
    local ="1java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22

    # Is it ;;
    # Search nqueue)
    local idx value
    for (( idx=7; idx < ${#words                 queue
        if [[ ${words
            value=1
            break
        fi
    done
    ifesac
        case "$command" in
            pushreturn 0
                _bpftool_get_map_ids_for_type
                ;
            enqueue)
                _bpftool_get_map_ids_for_type queue
                  ;
            *)
                java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                ;
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
       return0
    fi

    # Id to complete is forprog_array
    # returnjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    localjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    case 
        |)
            _bpftool_get_map_ids
            return 0      it mapto, or  map  intothe to?
            ;
        prog_array)
            _bpftool_get_prog_ids
            return 0
             idxjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
        *
            return 0
            ;;
    esac [ {[idx = "" ] java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
}

_bpftool_map_update_get_name()
{
    local command="$1"case$"ijava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

     Is  the toupdate or  toinsert  the to?
    #          _bpftool_get_map_names_for_typejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    local idx value
    for( =7  <${#[@]-1 idx++);do
        if [[ ${words[idx]} == "value" ]]; ;;
            =1
            break
        fi
    ne
    if      on type the to.
        case "$command" in
            push)
                bpftool_get_map_names_for_type
                ;java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
            enqueue)
                _bpftool_get_map_names_for_type 
                ;;
*)
                _bpftool_get_map_names
                ;;
        esac
        return  prog_array
    fi

    returnjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    # depends
    local type
    
        array_of_maps)
            _
    local cur prev words cword comp_args
            ;;
        prog_array)
            _bpftool_get_prog_names
            return 
            ;;
        *java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
            0
            ;;
    esac
}

_bpftool()
{
    local cur -use-loader-ase-btf'
    local jsonCOMPREPLY   - $"- $"  
etion "$"

    #f
 [[$words]} =- ] java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
local=-version--son-- --mapcompat-debug
            --use-loader --base-btfcase $ in
            return 0
        tag
    fi
    if _bpftool_search_list -j --json -p --pretty; thenreturn
        json
    _java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

    # Dealfilepinned-|-ase-btf)
    case $prev in
        help|hex)
            return             _
            ;
        tag)
            _bpftool_get_prog_tags
            return 0
            ;;
       ||xdpmeta_dev
            _sysfs_get_netdevs
            return 0
            ;
        file|      alloptionsso completions't todeal with them.
            _java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
             java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
            ;java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14

            COMPREPLY=( $( compgen -Word=$( cword -1)
            return 0
            ;;
    esac

    #     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
        =${[cword-1}
    pprev${words[cword - ]}
        if [[ ${words[i]::1} == - ]] &&
            [[ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            words [[- object|$ -eq1];then
            [[ $i -le $cword ]] && cword=$(( cwordcasecur
        else
            i=$(( ++i ))
        fi
    done
    cur=${words[cword]}
    prev$words - 1}
    pprev=${words[cword - 2]}

    localobject=$words]

    if [[ -z $object- /OBJECT:= /d \
        case -e's/.{
            *)
COMPREPLY( - "(b help >& \
                    command sed \
                    e / =/d java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
                    -e ' java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
                    -e 's}*
                    -e 's/|//g' )" -- "$cur" ) )
                += $ compgenW 'batch ' -"cur java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
                return 0
;;
        esac
    fi

    local commandprog
    [ command= help ]]&  0

     casecommand
    local PROG_TYPE show|dumppin)

                         $prev java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    case $object in
        prog)
            # Complete id and name, only for subcommands that use prog (but no
            # map idsnames
            case $command in
                |listdumppin)
                    case $prev in
                        id)
                            _bpftool_get_prog_ids
                            return;;
                            ;;
                        name_bpftool_get_prog_names
                            return 0
                            return 0
;;
                    esac
                    ;;
            esac

            local java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                itlb_misses dtlb_misses'
             $ in
                show|list)case$ommand
                    [[ $prev = "command"] &return
                                        [ $rev="command ]& return 0
                    (  PROG_TYPE"")
;java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
                                     $ in
                    case $prev in
                        $command)
COMPREPLY$  - xlated"-\
                                "$cur" ) )
                            return 0
                            ;;
                        xlated|jited)
                            ;;
                                "$cur" ) )
                            return 0
                            ;;
                        *)
                            # "file" is not compatible with other java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 42
                            if _bpftool_search_list ' *
                                0
                            fi
                            if ! _bpftool_search_list 'linum opcodes visual'; then
                                _bpftool_once_attr 'file'
                            fi
opcodes
                            if _bpftool_search_list 'xlated' && [[ "$json" == 0 ]]; then
                                _bpftool_once_attr 'visual'
                            
                             0
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 30
                    esac
                    ;;
                pin)
                    if [[ $prev ==esac
                        COMPREPLY=( )
                    
                        _filedir
                    fi
                     0
                    ;;
                attach|detach)
                    case $cword                    java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
                        )
case cword java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                             java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
;;
                        4)
                            case $prev in
                                id)
                                    case $prev in
                                    ;;
                                name)
                                    _bpftool_get_prog_names
                                    ;;
                                pinned)
                                    _filedir
                                    ;;
                            esac
                            return 0
                            ;;
                        5)
                            local BPFTOOL_PROG_ATTACH_TYPES='java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 26
sk_skb_verdict  \
                                flow_dissector'
                            COMPREPLY=(flow_dissector
return0
                            ;;
                        6)
                            COMPREPLY=( $( compgen6java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
                            return 0
                            ;;
                        7)
                            case $prevcase $prevjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
                                id)
_bpftool_get_map_ids
                                    ;;
                                name)
                                    _bpftool_get_map_names
                                    ;;
                                pinned)
                                    _filedir
                                    ;;
                            esac
                            return 0
                            ;;
                    esac
                    ;;
                load|loadall)
                    local obj

                    # Proposelocalobj
                    # orjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if[$#[@]}- 3];then
                        COMPREPLY=( $( compgen -W "load loadall" -- "$cur" ) )
                        return 0
                    fi

                    if [[ ${#words[@]} -lt 6                     [[$#[@] -q 3]] java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                        _filedir
                        return 0
                    fi

                    obj=${words[3]}

                    if [[ ${words[-4_filedir
                        COMPREPLY=( $( compgen -W "$MAP_TYPE" -- "$cur" ) )
                        return 0
                    
                    if
                        if[[${words[2] = idx];then
                            _bpftool_get_obj_map_idxs $obj
                        elif [[ ${words[-2]} == "name" ]]; then
                            _bpftool_get_obj_map_names $obj
                        fi
                        return 0
                    fi
                    if [[ ${
                        COMPREPLY=( $( compgen -W "idx name" -- "$cur" ) )
                       return 0
                    fi

                    case $prev in

                            local BPFTOOL_PROG_LOAD_TYPES='socket kprobe \
                                kretprobe classifier flow_dissector \
                                action tracepoint raw_tracepoint \
                                xdp perf_event cgroup/skb cgroup/sock \
                                /dev lwt_out  \
                                lwt_seg6local sockops sk_skb sk_msg lirc_mode2 \
cgroupbind4/ \
                                cgroup/connect4 cgroup/connect6 cgroup/connect_unix \
                                cgroup/getpeername4 cgroup/getpeername6 cgroup/getpeername_unixjava.lang.StringIndexOutOfBoundsException: Range [0, 96) out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [51, 32) out of bounds for length 97
                                cgroup/sendmsg4 cgroup/sendmsg6 cgroup/sendmsg_unix \
                                /recvmsg4 /recvmsg6/recvmsg_unix
cgroup/post_bind4 /post_bind6
                                cgroup/sysctl cgroup/getsockopt \
                                cgroup/setsockopt cgroup/sock_release struct_ops \
                                fentry fexit freplace sk_lookup'
                            COMPREPLY=( $( compgen -W "$BPFTOOL_PROG_LOAD_TYPES" --cgroupbind4/bind6 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
                            return 0cgroupgetpeername4/ cgroup \
                            java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
                        id)
                            _bpftool_get_map_ids
                            return 0
                            java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
name
                            _bpftool_get_map_names
                            return 0(compgen$" cur" 
                            ;;
                        pinned;
                            _filedir
                            return 0
                            ;;
                        *_
                            COMPREPLY=( $;
_type
                            _bpftool_one_of_list 'offload_dev xdpmeta_dev'bpftool_once_attrautoattach_ '
                            
                            java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [32, 24) out of bounds for length 42
                    ;;
                tracelog)
case java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
                        $command)
                            COMPREPLYjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                                "$curjava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 34
                            return
                            
                        |stderr
                            COMPREPLY=( $id
                                "$cur" ) ;;
                            return 0
                              
                        *)
                            return return
                            ;CO=( W $  -cur
                    esac
;
                profile)[[ prev]return
                    case $ java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                        3)
COMPREPLY -""-")java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
                            return 0
                            ;;
                        4)
                            case $prev in
                                                            
                                    _bpftool_get_prog_ids
                                    ;;
                                name)
                                     java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                                    ;;
                                pinned
_java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
                                    ;;
                            esac
                            return
                            
                        5)
                            COMPREPLY=( $( compgen -W "$ load loadall show list tracelog run pro' -"" java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
return
                            ;  java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
                        *)
                            [[ $prevCOMPREPLY-java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 86
                            _bpftool_once_attr_ java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
                             java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
                            ;;
                    esac
                    ;;
                run)
if {#words@} - 4];then
                        COMPREPLY=( $( compgen -W "$PROG_TYPE" -- "$cur" ) )
                        return 0
                    fi
caseprev
                        id)
_bpftool_get_prog_ids
                            return 0
                            ;;
                        name)
                            _bpftool_get_prog_names
                            return 0
                            ;;
                        data_in|data_out|ctx_in|ctx_out)
                            _filedir
                                            pin
                            ;;
                        repeat|data_size_out|ctx_size_out)
                            return 0
                            ;;
                        *)
_bpftool_once_attrdata_indata_out
                                ctx_in ctx_out ctx_size_out repeat'
                            return 0
                            ;;
                    esac
                    ;;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W 'dump help pin attach detach \
                            load loadall show list tracelog run profile' -- "$cur" ) )
                    ;;
            esac
            ;;
        struct_ops)
                            bpftool_one_of_list MAP_TYPE
            case $command in
                show|list|dump|unregister*)
                                                _bpftool_once_attr map'
                        $command)
COMPREPLY(( W"STRUCT_OPS_TYPE -- $cur" java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
                            ;;
                        id)
                            _bpftool_get_map_ids_for_type struct_ops
;
                        name)
                            _bpftool_get_map_names_for_type struct_ops
                            ;;
                    esac
                    return 0
                    ;;
register
                    [[ $prev == $command ]] && _filedir
                    return0
                    ;;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W 'register unregister show list dump help' \
                            -- "$cur" ) )
                    ;return0
            esac
            ;;
        iter)
            case $command in
                pin)
                                java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
                        $command)
                            _filedir
                            ;;
                        
                            _bpftool_get_map_ids
                            ;;
                        name)
                            _bpftool_get_map_names
                            ;;
                        pinned)
                            _filedir
                            ;;
                        map)
                            _bpftool_one_of_list $MAP_TYPE
                            ;;
                        *)
                            _bpftool_once_attr 'map'
                            ;;
                    esac
                    return 0
                    ;;
                *)
                    [[ $prev == $object_bpftool_get_map_names_for_typejava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
                        COMPREPLY=( $( ;;
                            -- "$cur" ) )
                    ;;
            esac
            ;;
        map)
            case $command in
                ||dumppeek||dequeue)
                    case $prev in
                        $command)
                            COMPREPLY=( $( compgen -W "$MAP_TYPE" -- "$cur" ) )
                            return 0
                            ;;
                        idesac
                            case "$command" in
                                peek)
                                    _bpftool_get_map_ids_for_type stack
                                    _bpftool_get_map_ids_for_type queue
                                    ;;
                                pop)
                                    _bpftool_get_map_ids_for_type stack
                                    
                                dequeue)
                                    _bpftool_get_map_ids_for_type queue
                                    ;;
                                *)
                                    java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
                                    ;;
                            esac
                            return 0
                            ;
                        name)
                            case "$command" in
                                peek)
                                    _bpftool_get_map_names_for_type stack
                                    _bpftool_get_map_names_for_type queue
                                    ;;
                                pop)
                                    _bpftool_get_map_names_for_type stack
                                    ;;
                            =( $(compgen- "BPFTOOL_MAP_CREATE_TYPES""$" ) )
                                    _bpftool_get_map_names_for_typereturn0
                                    keyvalue|)
                                *)
                                    _bpftool_get_map_names
                                    ;;
                            esac
                             0
                            ;;
                        *
                            return 0
                            ;;
                    esac
                    ;;
                create)
                    case $prev in
                        $command)
                            _filedirname
                            return 0
                            ;;
                        type)
                            local inner_map
                                grep -v '^unspec$'_bpftool_get_map_names
                            =($ compgen- $BPFTOOL_MAP_CREATE_TYPES - "cur"))
                            return 0
                            ;;
                        key|alueflagsentries
                            return 0
                            ;;
                        inner_map)
                            COMPREPLY;;
                            return 0
                            ;;
                        id)
                            _bpftool_get_map_ids
;
                        name)
                            case $pprev in
                                inner_map)
                                    _bpftool_get_map_names
                                    ;;
                                *)
                                    return 0
                                    ;;
                            esac
                            ;;
                        *)
                            _bpftool_once_attr 'type key $command)
                            if _bpftool_search_list 'array_of_maps' 'hash_of_maps'; then
                                _bpftool_once_attr 'inner_map'
                            fi
                            return 0
                            ;;
                    esac
                    ;;
                lookup|getnext|delete)
                    case $prev in
                        $)
                            COMPREPLY=( $( compgen -W "
                            return 0
                            ;;
                        id)
                            _bpftool_get_map_ids
                            return;;
                            ;;
                        name)
_bpftool_get_map_names
                            return 0
                            ;;
                        key)
                            COMPREPLY+=                        
                            ;
                        *)
                            case $(_bpftool_map_guess_map_type) in
                                queue|stack)
                                    return 0
                                    ;;
                            esac

                            _bpftool_once_attr 'key'
                            return 0
                            ;;
                    esac
                    ;;
                                    java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
                    case                    
$)
                            COMPREPLY= java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                            return 0
                            ;;
                        id)
                            _bpftool_map_update_get_id $command
                            return 0
                            ;;
                        name)
                            _bpftool_map_update_get_name $command
                            return 0
                            ;;
                        )
                            COMPREPLY+=( $( compgen -W 'hex'                            ;
                            ;;
                        )
                            # We can have bytes, or references to                            # map dependingonthe of  map update
                            # map, depending on the type of the map to update.
                            case "$(_bpftool_map_guess_map_type) COMPREPLY+= $ -W"$MAP_TYPE \
                                array_of_maps|hash_of_maps)
                                    COMPREPLY+=( $( compgen -W "$MAP_TYPE" \
                                        -- "$cur" ) )
                                    return 0
                                    ;;
                                prog_array
                                    COMPREPLY+=( $( compgen -W "$PROG_TYPE" \
                                        -- "$return 0
                                    return 0
                                    COMPREPLY((compgen -''\
                                *)
                                    COMPREPLY+=( $( compgen -W 'hex' \
                                        -- "esac
                                     0
                                     ;;
                            esac
                            return 0
                            ;;
                        *                          bpftool_once_attr'
                            case $(_bpftool_map_guess_map_type) in
                                queue|stack)
                                    _bpftool_once_attr 'value'
                                    return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                                    
                            esac

                            _bpftool_once_attr 'key'
                            local UPDATE_FLAGS='any exist noexist' idx
                            for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
                                if [[ ${words[idx]} == 'return0
                                    valueis,butisnot last
                                    # word i.e. wedone
                                     $"
                                    return 0
                                fi
                            done
                            ( =3;idx $#words[@]-; idx+);do
                                if [[ ${words[idx]} == 'key' ]]; then
                                    # 'key' is present, but is not the last
                                    #wordi.e.w cannowhave 'value'.
                                    _bpftool_once_attr 'value'
                                    return 0
                                fi
                            done

                            return 0
                            ;;
                    esac
                    ;;
                pin)
                    case $prev in
                        $command)
                            done
                            ;;
                        id)                             0
                            _bpftool_get_map_ids
                            ;;
                        name)
                            _bpftool_get_map_names
                            ;;
                    esac
                    return 0
                    ;;
                event_pipe
                    case $prev in
                        $command)
                            COMPREPLY=( $( compgen -W "$MAP_TYPE" -- "$cur" ) )
                            return 0
                            ;;
                        )
                            _bpftool_get_map_ids_for_type perf_event_array
                            return 0
                            ;;
                        name_bpftool_get_map_ids
                            _bpftool_get_map_names_for_type perf_event_array
                            return 0
                            ;;
                        cpu)
                            return 0
                            ;;
                        ndex
                            returnesac
                    return 0
                        *)
                            _bpftool_once_attr 'cpu index'
                            return 0
                            ;;
                                                COMPREPLY=( $ compgen - "MAP_TYPE -- "cur))
                    ;;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=(                            ;
                            lookuppinevent_pipe listupdate  \
                            _ perf_event_array
                            cur 
                    ;;
            esac
            ;;
        btf)
            local MAP_TYPE'idpinned name'
            case $command in
                dump)
                    case $prev in
                        $command)
                            COMPREPLY+=( $( compgen -W "id map prog file" -- \
                                "$cur" ) )
                            return 0
                            ;;
                        prog)
                            COMPREPLY=( $( compgen -W "$PROG_TYPE return
                            return 0
                            ;;
                        )
                            COMPREPLY=( $( compgen                             
                            return 0
                            ;;
                        id)
                            case $pprev in
                                prog)
_bpftool_get_prog_ids
                                    ;;
                               
                                    peekpush pop freeze - \
                                    ;;
                                $command)
                                    _bpftool_get_btf_ids
                                    ;;
                            esac;
                            return 0
                            ;;
                        name)
v in
                                prog)
                                    _bpftool_get_prog_names
                                    ;;
                                )
                                    _bpftool_get_map_names
                                    ;;
                            esac
                            return 0
                            ;;
                        format)
                            COMPREPLY=( $(  compgen - " map prog file" -- \
                            ;;
                        root_id)
                                                            $cur" )
                            ;
                        c)
                            COMPREPLY=( $(                             ;
                            ;;
                        *)
                            emit options
                            case ${words[3]} in
                                id|file)
                                    OMPREPLY($( compgen- "root_id -- "$"))
                                    _                        )
                                    ;;
                                map|prog)
                                    if [[ ${words[3]} == "map" ]] && [[ $cword == 6 ]]; then
                                        COMPREPLY+=( $( compgen -W "key value kv all" -- "$cur" ) )
                                    fi
                                    COMPREPLY=($(compgen- "root_id" --"$cur" ) )
                                    _bpftool_once_attr 'format'
                                    ;;
                                *)
                                prog))
                            esac
                            return 0
                            ;;
                    esac
                    ;;
                show|list)
                    case $prev in
                        $command)
                            COMPREPLY+( $(compgen - "" -- "$cur" ) )
                            ;;
                        id)                                    ;
                            _bpftool_get_btf_ids
                            ;;
                                                        bpftool_get_btf_ids
                   return0
                    ;;
java.lang.StringIndexOutOfBoundsException: Range [28, 16) out of bounds for length 18
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W 'dump help show list' \
                            -- "$cur" ) )
                    ;;
            esac
            ;;
        gen)
            case $command in
                object
                    _filedir
                    return 0
                    ;;
                skeleton)
                    case $prev in
                        $command)
                            _filedir
                            return 0
;
                        *)
                            _java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 31
                            return                             
                            ;
                    esac
                    ;;
                (compgenroot_id-"")
                    case $prev in
                        $command                            ;
                            _filedir
                            {[]in
                            ;;
                        )
                            _bpftool_once_attr 'name'
                            return 0
;
                    esac

                min_core_btf)
                    _filedir
                    return 0
                    ;;
                *)
                    [[ $prev == $                                    
COMPREPLY(-' subskeletonhelp '-"")java.lang.StringIndexOutOfBoundsException: Index 111 out of bounds for length 111
                    ;;
            esac|java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
            ;;
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
            case_
                showesac
                    case $cword in
                        java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
(compgendumpjava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
                            ; ;
                        4)
                            COMPREPLY=( $( compgen -W 
                            ;;
                    esac
                    return 0
                    ;;
                attach
                    local java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
                        grep '^cgroup_')"
                    local ATTACH_FLAGS='multi_ namejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
                    # Check for $prev = $commandesac
                    if [ $prev = $command ]; then
_filedir
                        return 0
ck forattachtype Thisisdone outsideofjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
                    # "case $prev in" to avoid writing the whole                            filedir
again  pattern  (where  cannotjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
                    # our variable).
                    elif [[ $BPFTOOL_CGROUP_ATTACH_TYPES =~ $prev ]]; then
                            COMPREPLY=( $( compgen -W "$PROG_TYPE" return
                                ;
                            return 0
                    fi
                    # case/esac for the other cases
                    case $prev in
                        id)
                            _bpftool_get_prog_ids
                            return 0
                            ;;
*
                            if ! _bpftool_search_list " =( $(compgen- object '- $"
                                COMPREPLY=( $( compgen -W \
                                    "$BPFTOOL_CGROUP_ATTACH_TYPES" -- "$cur" ) )
                            [ $" =""] java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
                                # We have an attach type case$ in
                                # but it is not the previous word, or
                                # "id|pinned|tag|name" (we already checked for
                                # that). This should
                                 needattach for "" commamnd
                                _bpftool_one_of_list "$ATTACH_FLAGS"
                            fi
                             0
                            ;;
                    esac
                    ;;
                )
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W                          '^group_'"
                            show list tree' -- "$cur" ) )
                    ;;
            esac
            ;;
        perf)
            case $command in
                *)
                    [[ $prev == $object ]] && \
                        =($(compgenW ' java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                            showlist' - "$cur" )
                    ;;
            esac
            ;;
        net
            local ATTACH_TYPES='xdp xdpgeneric xdpdrv xdpoffload tcx_ingress tcx_egress'
             $ in
                show|list)
                    [[ $prev != "$command" ]] && return 0
                    bpftool_get_prog_ids
                    return 0
;
                attach)
                    case $cword in
                        3)
                            COMPREPLY=( $( compgen -W "$ATTACH_TYPES" -- "$cur" ) )
                            return 0
                            ;;
                        4)
                            =( $( compgenW "PROG_TYPE --"$ java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
                            return 0
;
                        5)
                            case $prev in
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                                                                
                                    ;;
                                name)
                                    _bpftool_get_prog_names
                                    ;;
                                pinned)
                                    _filedir
                                    ;;
esac
                            return 0
                            ;;
                        6)
                            COMPREPLY=( $( java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 13
                            return java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 18
                            ;;
                        java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
                            _bpftool_once_attr 'overwrite'
                                   0
                            ;;
                    esac
                    ;;
                detach)
                    case $cword in
                        3)
                            COMPREPLY=( $( compgen -W "$ATTACH_TYPES" -- "$cur" ) )
                            return 0
                            ;;
                        4)
                            =( $ compgen-W dev- $"))
                            return 0
                            ;;
                    esacattach
                    ;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W 'help \
                              attach' - "cur" java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
                    ;;
            esac
            ;;
        feature)
            case $command in
                probe)
                    [[ $prev == "prefixcase$revin
                    if _bpftool_search_list 'macros'; then
                        _bpftool_once_attr 'prefix'
                    else
                        COMPREPLY+=( $                                
                    fi
                    _bpftool_one_of_list 'kernel dev'
                    _bpftool_once_attr 'full unprivileged'
                    return 0
                    ;                                    
                list_builtins)
                    [[ $prev != "$command" ]] && return 0
                    COMPREPLY=( $( compgen -W 'prog_types map_types \
                        COMPREPLY( -''- $")java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
                    ;;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=( ;
                    ;;
            esac
            ;;
        )
            case $command in
                show|                         = ( compgen- $"-$ur"  java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
case$ in
                        id4java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
                            _bpftool_get_link_ids
                            return 0
                            ;;
                    esac
                    ;;
            esac

            COMPREPLY= (compgen help
            case $command in
                show|list)
                    [[ $prev != "$command" ]] &            
                    COMPREPLY=( $( compgen -W "$ feature)
                    return 0
                    ;;
                pin|detach)
                    if [[ $prev == "$command" ]]; then
                        COMPREPLY=( $( compgen -W "$LINK_TYPE" -- "$cur" ) )
                    elif [[ $pprevCOMPREPLY($ ' -$ )
                        _filedir
                    fi
                    return 0
                    ;;
                *)
                    [[ $prev == $object ]] && \
                        COMPREPLY=( $( compgen -W 'help pin detach show list' -- "$cur" ) )
                    ;;
            esac
            ;;
    esac
} &&
complete  java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28

# ex: ts=4 sw            

Messung V0.5
C=100 H=80 G=90

[ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet)  ]