#!/bin/bash

source ./kernel_config_utils.sh
source ./bpf_utils.sh

xdp_tools_check() {
    local is_error=false
    if ! kernel_config_check CONFIG_BPF_EVENTS; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    is_error=false
    if ! bpf_prog_type_check tracing; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

