OSDN Git Service

Merge "Minor changes to netlink code."
[android-x86/system-extras.git] / simpleperf / environment.h
index aa6f5eb..853ac44 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef SIMPLE_PERF_ENVIRONMENT_H_
 #define SIMPLE_PERF_ENVIRONMENT_H_
 
+#include <sys/types.h>
+
 #include <functional>
 #include <set>
 #include <string>
@@ -25,6 +27,7 @@
 #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";
 
@@ -74,8 +77,6 @@ bool GetValidThreadsFromThreadString(const std::string& tid_str, std::set<pid_t>
 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;