|
|
@ -94,7 +94,7 @@ impl FromStr for ProgramKind {
|
|
|
|
"uprobe" => UProbe,
|
|
|
|
"uprobe" => UProbe,
|
|
|
|
"uretprobe" => URetProbe,
|
|
|
|
"uretprobe" => URetProbe,
|
|
|
|
"xdp" => Xdp,
|
|
|
|
"xdp" => Xdp,
|
|
|
|
"trace_point" => TracePoint,
|
|
|
|
"tracepoint" => TracePoint,
|
|
|
|
"socket_filter" => SocketFilter,
|
|
|
|
"socket_filter" => SocketFilter,
|
|
|
|
"sk_msg" => SkMsg,
|
|
|
|
"sk_msg" => SkMsg,
|
|
|
|
"sk_skb/stream_parser" => SkSkbStreamParser,
|
|
|
|
"sk_skb/stream_parser" => SkSkbStreamParser,
|
|
|
@ -848,7 +848,7 @@ mod tests {
|
|
|
|
let mut obj = fake_obj();
|
|
|
|
let mut obj = fake_obj();
|
|
|
|
|
|
|
|
|
|
|
|
assert_matches!(
|
|
|
|
assert_matches!(
|
|
|
|
obj.parse_section(fake_section("trace_point/foo", bytes_of(&fake_ins()))),
|
|
|
|
obj.parse_section(fake_section("tracepoint/foo", bytes_of(&fake_ins()))),
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
);
|
|
|
|
);
|
|
|
|
assert_matches!(
|
|
|
|
assert_matches!(
|
|
|
|