17#ifndef BACKENDS_EBPF_PSA_EXTERNS_EBPFPSACOUNTER_H_
18#define BACKENDS_EBPF_PSA_EXTERNS_EBPFPSACOUNTER_H_
20#include "backends/ebpf/ebpfTable.h"
24class ControlBodyTranslatorPSA;
33 enum CounterType { PACKETS, BYTES, PACKETS_AND_BYTES };
39 static CounterType toCounterType(
int type);
50 virtual void emitCount(
CodeBuilder *builder,
const IR::MethodCallExpression *expression,
53 virtual void emitCounterInitializer(
CodeBuilder *builder);
Definition ebpf/codeGen.h:33
Definition ebpf/codeGen.h:41
Definition ebpfPsaCounter.h:26
Definition ebpfTable.h:150
Definition ebpfProgram.h:39
Base class for EBPF types.
Definition ebpfType.h:29
Definition methodInstance.h:168
Definition codeGen.cpp:25