#!/bin/bash

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

btf_check() {
    local is_error=false
    if ! kernel_config_check CONFIG_DEBUG_INFO; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_DEBUG_INFO_BTF; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_DEBUG_INFO_BTF_MODULES; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

