P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::EBPF::BccTarget Class Reference

Represents a target compiled by bcc that uses the TC. More...

#include <target.h>

Inheritance diagram for P4::EBPF::BccTarget:
[legend]

Public Member Functions

cstring abortReturnCode () const override
 
cstring dataEnd (cstring base) const override
 
cstring dataLength (cstring base) const override
 
cstring dataOffset (cstring base) const override
 
cstring dropReturnCode () const override
 
void emitCodeSection (Util::SourceCodeBuilder *, cstring) const override
 
void emitIncludes (Util::SourceCodeBuilder *builder) const override
 
void emitLicense (Util::SourceCodeBuilder *, cstring) const override
 
void emitMain (Util::SourceCodeBuilder *builder, cstring functionName, cstring argName) const override
 
void emitResizeBuffer (Util::SourceCodeBuilder *, cstring, cstring) const override
 
void emitTableDecl (Util::SourceCodeBuilder *builder, cstring tblName, TableKind tableKind, cstring keyType, cstring valueType, unsigned size) const override
 
void emitTableLookup (Util::SourceCodeBuilder *builder, cstring tblName, cstring key, cstring value) const override
 
void emitTableUpdate (Util::SourceCodeBuilder *builder, cstring tblName, cstring key, cstring value) const override
 
void emitUserTableUpdate (Util::SourceCodeBuilder *builder, cstring tblName, cstring key, cstring value) const override
 
cstring forwardReturnCode () const override
 
cstring packetDescriptorType () const override
 
cstring sysMapPath () const override
 
- Public Member Functions inherited from P4::EBPF::Target
virtual void emitMapInMapDecl (Util::SourceCodeBuilder *builder, cstring innerName, TableKind innerTableKind, cstring innerKeyType, cstring innerValueType, unsigned innerSize, cstring outerName, TableKind outerTableKind, cstring outerKeyType, unsigned outerSize) const
 
virtual void emitPreamble (Util::SourceCodeBuilder *builder) const
 
virtual void emitTableDeclSpinlock (Util::SourceCodeBuilder *builder, cstring tblName, TableKind tableKind, cstring keyType, cstring valueType, unsigned size) const
 
virtual void emitTraceMessage (Util::SourceCodeBuilder *builder, const char *format) const
 
virtual void emitTraceMessage (Util::SourceCodeBuilder *builder, const char *format, int argc,...) const
 

Additional Inherited Members

- Public Attributes inherited from P4::EBPF::Target
const cstring name
 
- Protected Member Functions inherited from P4::EBPF::Target
 Target (cstring name)
 

Detailed Description

Represents a target compiled by bcc that uses the TC.

Member Function Documentation

◆ abortReturnCode()

cstring P4::EBPF::BccTarget::abortReturnCode ( ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ dataEnd()

cstring P4::EBPF::BccTarget::dataEnd ( cstring base) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ dataLength()

cstring P4::EBPF::BccTarget::dataLength ( cstring base) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ dataOffset()

cstring P4::EBPF::BccTarget::dataOffset ( cstring base) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ dropReturnCode()

cstring P4::EBPF::BccTarget::dropReturnCode ( ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ emitCodeSection()

void P4::EBPF::BccTarget::emitCodeSection ( Util::SourceCodeBuilder * ,
cstring  ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ emitIncludes()

void P4::EBPF::BccTarget::emitIncludes ( Util::SourceCodeBuilder * builder) const
overridevirtual

Implements P4::EBPF::Target.

◆ emitLicense()

void P4::EBPF::BccTarget::emitLicense ( Util::SourceCodeBuilder * ,
cstring  ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ emitMain()

void P4::EBPF::BccTarget::emitMain ( Util::SourceCodeBuilder * builder,
cstring functionName,
cstring argName ) const
overridevirtual

Implements P4::EBPF::Target.

◆ emitResizeBuffer()

void P4::EBPF::BccTarget::emitResizeBuffer ( Util::SourceCodeBuilder * ,
cstring ,
cstring  ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ emitTableDecl()

void P4::EBPF::BccTarget::emitTableDecl ( Util::SourceCodeBuilder * builder,
cstring tblName,
TableKind tableKind,
cstring keyType,
cstring valueType,
unsigned size ) const
overridevirtual

Implements P4::EBPF::Target.

◆ emitTableLookup()

void P4::EBPF::BccTarget::emitTableLookup ( Util::SourceCodeBuilder * builder,
cstring tblName,
cstring key,
cstring value ) const
overridevirtual

Implements P4::EBPF::Target.

◆ emitTableUpdate()

void P4::EBPF::BccTarget::emitTableUpdate ( Util::SourceCodeBuilder * builder,
cstring tblName,
cstring key,
cstring value ) const
overridevirtual

Implements P4::EBPF::Target.

◆ emitUserTableUpdate()

void P4::EBPF::BccTarget::emitUserTableUpdate ( Util::SourceCodeBuilder * builder,
cstring tblName,
cstring key,
cstring value ) const
overridevirtual

Implements P4::EBPF::Target.

◆ forwardReturnCode()

cstring P4::EBPF::BccTarget::forwardReturnCode ( ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ packetDescriptorType()

cstring P4::EBPF::BccTarget::packetDescriptorType ( ) const
inlineoverridevirtual

Implements P4::EBPF::Target.

◆ sysMapPath()

cstring P4::EBPF::BccTarget::sysMapPath ( ) const
inlineoverridevirtual

Implements P4::EBPF::Target.