P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
MatchSlotTracker Class Reference

This class is used for internal tracking of Tofino output map extractor allocation. It is beneficial during the debugging process of this functionality because it can provid the answer to question: "What is alloacted into this extractor slot?". More...

Public Member Functions

std::string get_db_slots (const Parser::State::Match *match, const int slot_idx) const
 Get the db slots object.
 

Public Attributes

CsumMap csumMap
 
PaddingMap padMap
 
SaveMap saveMap
 
SetMap setMap
 

Detailed Description

This class is used for internal tracking of Tofino output map extractor allocation. It is beneficial during the debugging process of this functionality because it can provid the answer to question: "What is alloacted into this extractor slot?".

Member Function Documentation

◆ get_db_slots()

std::string MatchSlotTracker::get_db_slots ( const Parser::State::Match * match,
const int slot_idx ) const
inline

Get the db slots object.

Parameters
matchMatch line to dump
slot_idxPassed index of slot which needs to be dumped
Returns
std::string object with dumped data