#!/bin/bash

source ./kernel_config_utils.sh
source ./net_utils.sh

perf_check() {
    is_error=false
    if ! kernel_config_check CONFIG_PERF_EVENTS; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_KPROBE_EVENTS; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_UPROBE_EVENTS; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

