func init() {
	isFlagSet, err := parseCpuInfoFile("/proc/cpuinfo")
	if !isFlagSet || err != nil {
		isEnabled = false
		return
	}
	isEnabled = isIntelRdtMounted()
}
Check if Intel RDT is enabled in init()
package intelrdt
import (
	"bufio"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"strconv"
	"strings"
	"sync"
	"github.com/opencontainers/runc/libcontainer/configs"
)
type Manager interface {
	Apply(pid int) error
	GetStats() (*Stats, error)
	Destroy() error
	GetPath() string
	Set(container *configs.Config) error
}
type IntelRdtManager struct {
	mu     sync.Mutex
	Config *configs.Config
	Id     string
	Path   string
}
const (
	IntelRdtTasks = "tasks"
)
var (
	intelRdtRoot     string
	intelRdtRootLock sync.Mutex
	isEnabled bool
)
type intelRdtData struct {
	root   string
	config *configs.Config
	pid    int
}