summaryrefslogtreecommitdiff
path: root/simpleperf/event_attr.h
AgeCommit message (Collapse)Author
2016-09-29Simpleperf: don't expose EventSelection.Yabin Cui
And some tiny improvements. Bug: http://b/30974760 Test: run simpleperf_unit_test. Change-Id: Ie2d46c8ab9ee763d107527c9a54590f845569da4
2016-08-05simpleperf: reduce Record construction overhead while recording.Yabin Cui
Avoid binary allocation and memory copy in ReadRecordsFromBuffer(), thus reduce Record construction overhead in EventSelectionSet::ReadMmapEventDataForFd(). Remove RecordCache used while recording. Replace it with RecordFileWriter::SortDataSection(). For unwinding while recording, use low watermark to make records almost sorted when dumped from the kernel. Bug: 30649868 Test: run simpleperf_unit_test. Change-Id: Ie5fb942046900a5960b3c990cf4177c026eaadfb
2016-06-15simpleperf: add type modifier when reporting events.Yabin Cui
Before the change: $simpleperf record -e cpu-cycles:u sleep 1 $simpleperf report ... Event: cpu-cycles (type 0, config 0) ... After the change: $simpleperf report ... Event: cpu-cycles:u (type 0, config 0) ... Change-Id: I296c5476e03250e928ed0f579483d6866576d417
2016-04-05simpleperf: support reporting more than one event type.Yabin Cui
When sampling kernel trace points, it is like to sample more than one even type. Like `simpleperf record -e kmem:mm_page_alloc,kmem:mm_page_free`. 1. change record command to dump event_id for all records. 2. change report command and record reader to support multiple event attrs. 3. hide record_cache inside EventSelectionSet. 4. add test to report multiple event types. Bug: 27403614 Change-Id: Ic22a5527d68e7a843e3cf95e85381f8ad6bcb196
2015-05-15Support tracepoint event types in simpleperf.Yabin Cui
Also support options in `simpleperf list`, add test about tracepoint event types. Bug: 19483574 Change-Id: I2d2c2f300fe5e2968696228899084410aa9f29a4
2015-05-04Implement simpleperf record/dumprecord subcommands.Yabin Cui
Bug: 19483574 Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0
2015-04-18Implement simpleperf list subcommand.Yabin Cui
simpleperf is used to replace linux/tools/perf. And This CL implements the list subcommand of it. Change-Id: I3e6fe854e19cc370070d0fd8416d0aa6fa8f8e90