cpu: Create record type enum for elastic traces
Review Request #3089 - Created Sept. 3, 2015 and submitted
| Information | |
|---|---|
| Curtis Dunham | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
This patch replaces the booleans that specified the elastic trace record
type with an enum type. The source of change is the proto message for
elastic trace where the enum is introduced. The struct definitions in the
elastic trace probe listener as well as the Trace CPU replace the boleans
with the proto message enum.The patch does not impact functionality, but traces are not compatible with
previous version. This is preparation for adding new types of records in
subsequent patches.This patch adds to the "Elastic Traces" patch series of RB3026-3031.
-
src/cpu/o3/probe/elastic_trace.cc (Diff revision 3) -
I am not completely sure, but for safety sake, are you allowed to return a reference here? What's the return type of Record::RecordType_Name()?
Ship It!
