OSDN Git Service

simpleperf: combine mapped buffer used for the same event and cpu.
authorYabin Cui <yabinc@google.com>
Fri, 8 Jul 2016 20:56:48 +0000 (13:56 -0700)
committerYabin Cui <yabinc@google.com>
Tue, 12 Jul 2016 22:18:49 +0000 (15:18 -0700)
commit6173592d3d086b8e493590d626fdbdb4e344c433
tree74412077b3158288e4a7a078bfe144e42d2710db
parentb17b6c3edf1c4027f38683dd97458a7aea176dc4
simpleperf: combine mapped buffer used for the same event and cpu.

Non root users have a size limit of buffers used for profiling.
By combining buffers used for the same event and cpu, we can
reduce buffer cost when monitoring multiple threads, thus
avoid mmap() failures.

Increase default value for -m option for non system wide profiling.

Bug: 28911532
Change-Id: I91148061eb54840c144cf72e7bb901e7b74897ec
Test: run simpleperf_unit_test.
simpleperf/cmd_record.cpp
simpleperf/cmd_record_test.cpp
simpleperf/event_fd.cpp
simpleperf/event_fd.h
simpleperf/event_selection_set.cpp
simpleperf/event_selection_set.h