From 6bceb1c3da2d0d71842073a2503810a666ef3caf Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 11 Jul 2023 16:52:06 -0400 Subject: [PATCH] Invert comparison Incorrectly inverted in b611038d5b41a45ca70553550dbdef9aa1fd117c. --- aya/src/programs/probe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/programs/probe.rs b/aya/src/programs/probe.rs index 98543149..80a5c088 100644 --- a/aya/src/programs/probe.rs +++ b/aya/src/programs/probe.rs @@ -50,7 +50,7 @@ pub(crate) fn attach>( ) -> Result { // https://github.com/torvalds/linux/commit/e12f03d7031a977356e3d7b75a68c2185ff8d155 // Use debugfs to create probe - if KernelVersion::current().unwrap() >= KernelVersion::new(4, 17, 0) { + if KernelVersion::current().unwrap() < KernelVersion::new(4, 17, 0) { let (fd, event_alias) = create_as_trace_point(kind, fn_name, offset, pid)?; let link = T::from(perf_attach_debugfs( program_data.fd_or_err()?,