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

Update probe module for kernel 4.11 #829

Merged
merged 3 commits into from
May 5, 2017
Merged

Update probe module for kernel 4.11 #829

merged 3 commits into from
May 5, 2017

Conversation

bertocci
Copy link

@bertocci bertocci commented May 4, 2017

Fixes #824

I tested using sysdig -c topprocs_cpu and csysdig

bwolmarans added 2 commits May 2, 2017 15:53
While nsec_to_clock_t is declared in an available header file,
we need to define it because the kernel doesn't export the symbol.
@bertocci bertocci self-assigned this May 4, 2017
#else
/*
* max relative error 5.7e-8 (1.8s per year) for USER_HZ <= 1024,
Copy link
Contributor

Choose a reason for hiding this comment

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

spaces/tabs (it looks like they were wrong even in the kernel file)

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
#include <linux/time.h>
#include <asm-generic/param.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably better to use linux/param.h

@luca3m luca3m merged commit 460f6e2 into dev May 5, 2017
@luca3m luca3m deleted the cputime_t_removed branch May 5, 2017 10:20
bertocci pushed a commit that referenced this pull request May 5, 2017
* 4.11 kernel changes: remove cputime_t and helpers

* Use nsec_to_clock_t() where needed

While nsec_to_clock_t is declared in an available header file,
we need to define it because the kernel doesn't export the symbol.

* Review fixes - better param.h include and indentation
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.

4 participants