16class TCOptions :
public CompilerOptions {
19 std::filesystem::path outputFolder;
22 bool emitTraceMessages =
false;
24 enum XDP2TC xdp2tcMode = XDP2TC_META;
25 unsigned timerProfiles = 4;
29 "-o",
"output Directory",
30 [
this](
const char *arg) {
34 "Write pipeline template, introspection json and C output to given directory");
37 [
this](
const char *) {
41 "Generates debug information");
44 [
this](
const char *) {
45 emitTraceMessages =
true;
48 "Generate tracing messages of packet processing");
51 [
this](
const char *arg) {
52 if (!strcmp(arg,
"meta")) {
53 xdp2tcMode = XDP2TC_META;
54 }
else if (!strcmp(arg,
"head")) {
55 xdp2tcMode = XDP2TC_HEAD;
56 }
else if (!strcmp(arg,
"cpumap")) {
57 xdp2tcMode = XDP2TC_CPUMAP;
61 "Select the mode used to pass metadata from XDP to TC "
62 "(possible values: meta, head, cpumap).");
64 "--num-timer-profiles",
"profiles",
65 [
this](
const char *arg) {
66 timerProfiles = std::atoi(arg);
69 "Defines the number of timer profiles. Default is 4.");
Definition parser_options.h:170