tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json

Source file repositories/reference/linux-study-clean/tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json
Extension
.json
Size
10202 bytes
Lines
316
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

[
    {
        "id": "d959",
        "name": "Add cBPF action with valid bytecode",
        "category": [
            "actions",
            "bpf"
        ],
        "setup": [
            [
                "$TC action flush action bpf",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
        "expExitCode": "0",
        "verifyCmd": "$TC action get action bpf index 100",
        "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
        "matchCount": "1",
        "teardown": [
            "$TC action flush action bpf"
        ]
    },
    {
        "id": "f84a",
        "name": "Add cBPF action with invalid bytecode",
        "category": [
            "actions",
            "bpf"
        ],
        "setup": [
            [
                "$TC actions flush action bpf",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
        "expExitCode": "255",
        "verifyCmd": "$TC action get action bpf index 100",
        "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
        "matchCount": "0",
        "teardown": [
            "$TC actions flush action bpf"
        ]
    },
    {
        "id": "e939",
        "name": "Add eBPF action with valid object-file",
        "category": [
            "actions",
            "bpf"
        ],
        "setup": [
            [
                "$TC action flush action bpf",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action-ebpf section action-ok index 667",
        "expExitCode": "0",
        "verifyCmd": "$TC action get action bpf index 667",
        "matchPattern": "action order [0-9]*: bpf action-ebpf:\\[action-ok\\] id [0-9].* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref",
        "matchCount": "1",
        "teardown": [

Annotation

Implementation Notes