Skip to content

Commit

Permalink
Invert comparison
Browse files Browse the repository at this point in the history
Incorrectly inverted in b611038.
  • Loading branch information
tamird committed Jul 11, 2023
1 parent 6e570f0 commit 6bceb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aya/src/programs/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(crate) fn attach<T: Link + From<PerfLinkInner>>(
) -> Result<T::Id, ProgramError> {
// 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()?,
Expand Down

0 comments on commit 6bceb1c

Please sign in to comment.