Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile errors on Linux 5.6 due to timespec / timeval #1621

Merged
merged 3 commits into from
Apr 30, 2020
Merged

Fix compile errors on Linux 5.6 due to timespec / timeval #1621

merged 3 commits into from
Apr 30, 2020

Conversation

nathan-b
Copy link
Contributor

No description provided.

@nathan-b nathan-b requested review from gnosek and speedyguy17 April 28, 2020 20:45
Copy link
Contributor

@gnosek gnosek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice for the most part, but please remove that ASSERT :)

driver/ppm_fillers.c Outdated Show resolved Hide resolved
driver/ppm.h Outdated Show resolved Hide resolved
driver/ppm.h Outdated Show resolved Hide resolved
Copy link
Contributor

@fntlnz fntlnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach @nathan-b - I was looking at this issue myself too and came up with a totally different approach, but wow I like this much more than mine!

I added some comments here and there, minor things.

I also noticed this PR does not affect the bpf driver yet, is that intended:

Thanks

driver/ppm.h Outdated Show resolved Hide resolved
@nathan-b
Copy link
Contributor Author

Thanks for the comments everyone! Trying again ;)

Copy link
Contributor

@gnosek gnosek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please take a look at BPF if you can :)

@nathan-b
Copy link
Contributor Author

@fntlnz wanna take a look at the eBPF changes?

Copy link
Contributor

@leodido leodido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fntlnz
Copy link
Contributor

fntlnz commented Apr 30, 2020

Tested this with @leodido

It works as expected on:

  • 5.6.2
  • 5.6.7
  • 4.19.119

Thank you @nathan-b

@fntlnz fntlnz merged commit 47374b2 into dev Apr 30, 2020
@fntlnz fntlnz deleted the y2038 branch April 30, 2020 13:58
@nathan-b
Copy link
Contributor Author

Thanks, @fntlnz and @leodido!

Molter73 pushed a commit to stackrox/falcosecurity-libs that referenced this pull request Sep 17, 2021
Adapt upstream sysdig changes (draios/sysdig#1621 and draios/sysdig#1672) to fix compile errors on due to timespec / timeval and kernel module compilation on 5.8
# Conflicts:
#	driver/bpf/fillers.h
#	driver/kernel_hacks.h
#	driver/main.c
#	driver/ppm.h
#	driver/ppm_fillers.c
Molter73 pushed a commit to stackrox/falcosecurity-libs that referenced this pull request Sep 17, 2021
Adapt upstream sysdig changes (draios/sysdig#1621 and draios/sysdig#1672) to fix compile errors on due to timespec / timeval and kernel module compilation on 5.8
# Conflicts:
#	driver/bpf/fillers.h
#	driver/kernel_hacks.h
#	driver/main.c
#	driver/ppm.h
#	driver/ppm_fillers.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants