github.com/inspektor-gadget/inspektor-gadget@v0.28.1/docs/crds/gadgets/ebpftop.md (about)

     1  ---
     2  # Code generated by 'make generate-documentation'. DO NOT EDIT.
     3  title: Gadget ebpftop
     4  ---
     5  
     6  ebpftop shows cpu time used by ebpf programs.
     7  
     8  The following parameters are supported:
     9   - interval: Output interval, in seconds. (default 1)
    10   - max_rows: Maximum rows to print. (default 20)
    11   - sort_by: The field to sort the results by (runtime.runtimeName,runtime.containerId,runtime.containerName,runtime.containerImageName,runtime.containerImageDigest,k8s.node,k8s.namespace,k8s.pod,k8s.labels,k8s.container,k8s.hostnetwork,progid,type,name,runtime,runcount,cumulruntime,cumulruncount,totalruntime,totalRunCount,mapmemory,mapcount,totalcpu,percpu). (default -runtime,-runcount)
    12  
    13  ### Example CR
    14  
    15  ```yaml
    16  apiVersion: gadget.kinvolk.io/v1alpha1
    17  kind: Trace
    18  metadata:
    19    name: ebpftop
    20    namespace: gadget
    21  spec:
    22    node: ubuntu-hirsute
    23    gadget: ebpftop
    24    runMode: Manual
    25    outputMode: Stream
    26    parameters:
    27      interval: "1"
    28      max_rows: "50"
    29      sort_by: all # all, runtime, runcount, progid, totalruntime, totalruncount, cumulruntime, cumulrouncount, mapmemory and mapcount are allowed
    30  ```
    31  
    32  ### Operations
    33  
    34  
    35  #### start
    36  
    37  Start ebpftop gadget
    38  
    39  ```bash
    40  $ kubectl annotate -n gadget trace/ebpftop \
    41      gadget.kinvolk.io/operation=start
    42  ```
    43  #### stop
    44  
    45  Stop ebpftop gadget
    46  
    47  ```bash
    48  $ kubectl annotate -n gadget trace/ebpftop \
    49      gadget.kinvolk.io/operation=stop
    50  ```
    51  
    52  ### Output Modes
    53  
    54  * Stream