Skip to content

Commit

Permalink
snabb ipfix probe: add --timeline option to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Mar 15, 2023
1 parent 00287bb commit a6fe6dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/program/ipfix/probe/probe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ local long_opts = {
busywait ="b",
["real-time"] = "r",
["no-profile"] = "p",
["timeline"] = "t",
["test-pcap"] = "T"
}
local opt = "hn:brpT:"
local opt = "hn:brptT:"
local opt_handler = {}
local name
local busywait, real_time, profile = false, false, true
Expand All @@ -34,6 +35,8 @@ function opt_handler.n (arg) name = arg end
function opt_handler.b () busywait = true end
function opt_handler.r () real_time = true end
function opt_handler.p () profile = false end
local timeline = false
function opt_handler.t () timeline = true end
local pcap_input
function opt_handler.T (arg) pcap_input = arg end

Expand Down Expand Up @@ -86,6 +89,7 @@ function start (name, confpath)
busywait = busywait,
real_time = real_time,
profile = profile,
timeline = timeline,
jit_opt = {
sizemcode=256,
maxmcode=8192,
Expand Down

0 comments on commit a6fe6dc

Please sign in to comment.