From 145cd9fa8d979feecfcb9dea64d3492e6a55dc15 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama <nakayamakenjiro@gmail.com> Date: Mon, 16 May 2022 20:15:45 +0900 Subject: [PATCH] Parse unnamed macro --- aya/src/obj/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aya/src/obj/mod.rs b/aya/src/obj/mod.rs index 60cac88b..5bd59007 100644 --- a/aya/src/obj/mod.rs +++ b/aya/src/obj/mod.rs @@ -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 },