#ifndef SIMPLE_PERF_ENVIRONMENT_H_
#define SIMPLE_PERF_ENVIRONMENT_H_
+#include <sys/types.h>
+
#include <functional>
#include <set>
#include <string>
#include "build_id.h"
std::vector<int> GetOnlineCpus();
+std::vector<int> GetCpusFromString(const std::string& s);
constexpr char DEFAULT_KERNEL_MMAP_NAME[] = "[kernel.kallsyms]_text";
bool GetExecPath(std::string* exec_path);
// Expose the following functions for unit tests.
-std::vector<int> GetOnlineCpusFromString(const std::string& s);
-
struct KernelSymbol {
uint64_t addr;
char type;