Skip to content

Commit

Permalink
auto-fdo: add missing perf event type
Browse files Browse the repository at this point in the history
create_gcov used to produce an error:
E1214 09:52:52.811347 20266 perf_parser.cc:189] Unknown event type: 68

that is fixed by this patch.  There is nothing to be done on decoding a
PERF_RECORD_FINISHED_ROUND.
  • Loading branch information
Sebastian Pop committed Dec 14, 2016
1 parent 38e3093 commit 22d3fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions chromiumos-wide-profiling/kernel/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ enum perf_event_type {
*/
PERF_RECORD_MMAP2 = 10,

PERF_RECORD_FINISHED_ROUND = 68,
PERF_RECORD_MAX, /* non-ABI */
};

Expand Down
1 change: 1 addition & 0 deletions chromiumos-wide-profiling/perf_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ bool PerfParser::ProcessEvents() {
case PERF_RECORD_UNTHROTTLE:
case PERF_RECORD_READ:
case PERF_RECORD_MAX:
case PERF_RECORD_FINISHED_ROUND:
VLOG(1) << "Parsed event type: " << event.header.type
<< ". Doing nothing.";
break;
Expand Down

0 comments on commit 22d3fba

Please sign in to comment.