OSDN Git Service

Simpleperf: don't use ioctl(PERF_EVENT_IOC_ENABLE).
authorYabin Cui <yabinc@google.com>
Thu, 3 Dec 2015 18:31:37 +0000 (10:31 -0800)
committerYabin Cui <yabinc@google.com>
Thu, 3 Dec 2015 18:31:37 +0000 (10:31 -0800)
commita46794fa2963de93a9d25fd6945d3c58121e2ba6
treeffe5e349604dcc8637001a837f58b61e7391acd6
parentdd7f62ed576e70e73a92b278c99dcba0d27f33a5
Simpleperf: don't use ioctl(PERF_EVENT_IOC_ENABLE).

Some android kernels(like bullhead/angler) can't handle
ioctl(PERF_EVENT_IOC_ENABLE) correctly when cpu-hotplug
happens. Instead of fixing all of them in kernel, we
can't simply don't use it.

Bug: 25193162
Change-Id: I9df1458045ffd2ccc2c7ba393e746ebba7c253de
simpleperf/cmd_record.cpp
simpleperf/cmd_stat.cpp
simpleperf/event_attr.cpp
simpleperf/event_fd.cpp
simpleperf/event_fd.h
simpleperf/event_selection_set.cpp
simpleperf/event_selection_set.h