• Sasha Goldshtein's avatar
    argdist: STRCMP helper function · c8f752f7
    Sasha Goldshtein authored
    argdist filter expressions can now use the STRCMP helper
    function to compare strings. The first string must be a
    compile-time constant literal string, and the second string
    can be determined at runtime. This is a workaround until
    BPF introduces a kernel builtin for strcmp.
    
    Example:
    
    ```
    argdist -H 'r:c:open(char *file):u64:$latency:STRCMP("test.txt",file)'
    ```
    c8f752f7
argdist.8 7.9 KB