diff --git a/contrib/bpf_inspect.py b/contrib/bpf_inspect.py index 1d950d584..74721a607 100755 --- a/contrib/bpf_inspect.py +++ b/contrib/bpf_inspect.py @@ -179,7 +179,10 @@ def __repr__(self): id_ = self.prog.aux.id.value_() type_ = BpfProgType(self.prog.type).name name = self.get_prog_name() - tail_call_reachable = self.prog.aux.tail_call_reachable.value_() + try: + tail_call_reachable = self.prog.aux.member_("tail_call_reachable").value_() + except LookupError: + tail_call_reachable = None tail_call_desc = " tail_call_reachable" if tail_call_reachable else ""