28 std::filesystem::path outputFolder;
31 bool emitTraceMessages =
false;
33 enum XDP2TC xdp2tcMode = XDP2TC_META;
34 unsigned timerProfiles = 4;
38 "-o",
"output Directory",
39 [
this](
const char *arg) {
43 "Write pipeline template, introspection json and C output to given directory");
46 [
this](
const char *) {
50 "Generates debug information");
53 [
this](
const char *) {
54 emitTraceMessages =
true;
57 "Generate tracing messages of packet processing");
60 [
this](
const char *arg) {
61 if (!strcmp(arg,
"meta")) {
62 xdp2tcMode = XDP2TC_META;
63 }
else if (!strcmp(arg,
"head")) {
64 xdp2tcMode = XDP2TC_HEAD;
65 }
else if (!strcmp(arg,
"cpumap")) {
66 xdp2tcMode = XDP2TC_CPUMAP;
70 "Select the mode used to pass metadata from XDP to TC "
71 "(possible values: meta, head, cpumap).");
73 "--num-timer-profiles",
"profiles",
74 [
this](
const char *arg) {
75 timerProfiles = std::atoi(arg);
78 "Defines the number of timer profiles. Default is 4.");
Definition parser_options.h:174