Skip to content

Commit

Permalink
Parsee unnamed macro
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed May 16, 2022
1 parent 6c793da commit 5855a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aya/src/obj/mod.rs
Expand Up @@ -216,15 +216,16 @@ impl FromStr for ProgramSection {
"cgroup_skb/ingress" => CgroupSkbIngress { name },
"cgroup_skb/egress" => CgroupSkbEgress { name },
"cgroup/skb" => CgroupSkb { name },
"cgroup/sysctl" => CgroupSysctl { name },
"cgroup" => match &*name {
"skb" => CgroupSkb { name },
"sysctl" => CgroupSysctl { name },
_ => {
return Err(ParseError::InvalidProgramSection {
section: section.to_owned(),
})
}
},
"cgroup/sysctl" => CgroupSysctl { name },
"lirc_mode2" => LircMode2 { name },
"perf_event" => PerfEvent { name },
"raw_tp" | "raw_tracepoint" => RawTracePoint { name },
Expand Down

0 comments on commit 5855a07

Please sign in to comment.