32 bool emitTraceMessages =
false;
34 enum XDP2TC xdp2tcMode = XDP2TC_META;
35 unsigned timerProfiles = 4;
39 "-o",
"output Directory",
40 [
this](
const char *arg) {
44 "Write pipeline template, introspection json and C output to given directory");
47 [
this](
const char *) {
51 "Generates debug information");
54 [
this](
const char *) {
55 emitTraceMessages =
true;
58 "Generate tracing messages of packet processing");
61 [
this](
const char *arg) {
62 if (!strcmp(arg,
"meta")) {
63 xdp2tcMode = XDP2TC_META;
64 }
else if (!strcmp(arg,
"head")) {
65 xdp2tcMode = XDP2TC_HEAD;
66 }
else if (!strcmp(arg,
"cpumap")) {
67 xdp2tcMode = XDP2TC_CPUMAP;
71 "Select the mode used to pass metadata from XDP to TC "
72 "(possible values: meta, head, cpumap).");
74 "--num-timer-profiles",
"profiles",
75 [
this](
const char *arg) {
76 timerProfiles = std::atoi(arg);
79 "Defines the number of timer profiles. Default is 4.");
Definition parser_options.h:167