OSDN Git Service

simpleperf: support --clockid option in record cmd.
authorYabin Cui <yabinc@google.com>
Fri, 1 Sep 2017 22:40:41 +0000 (15:40 -0700)
committerYabin Cui <yabinc@google.com>
Tue, 5 Sep 2017 19:01:42 +0000 (12:01 -0700)
commit6d4959c21b0fe3fb4b4ca1758d2a595a43965ee5
tree92dd407ed3c24605c79aa4fa98a687d2533312f9
parentc01804d628cc965924bcf528699d3ccb1da64c98
simpleperf: support --clockid option in record cmd.

Setting clockid is supported in kernel 4.x.
Whether it is supported by the kernel can be checked
via `simpleperf list --show-features`.

Bug: http://b/65214671
Test: run simpleperf_unit_test.
Change-Id: I6f312cc62893af0fa5092ed91434b6df46435d7f
simpleperf/cmd_list.cpp
simpleperf/cmd_record.cpp
simpleperf/cmd_record_test.cpp
simpleperf/event_selection_set.cpp
simpleperf/event_selection_set.h