Commit 1f5acc02 authored by Pavel Emelyanov's avatar Pavel Emelyanov

check: Check that /proc/PID/timers file is here

It's required to get support for posix cpu timers and
it has appeared in v3.10
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 162866fe
......@@ -517,6 +517,18 @@ static int check_mem_dirty_track(void)
return 0;
}
static int check_posix_timers(void)
{
int ret;
ret = access("/proc/self/timers", R_OK);
if (!ret)
return 0;
pr_msg("/proc/<pid>/timers file is missing.\n");
return -1;
}
int cr_check(void)
{
int ret = 0;
......@@ -545,6 +557,7 @@ int cr_check(void)
ret |= check_sigqueuinfo();
ret |= check_ptrace_peeksiginfo();
ret |= check_mem_dirty_track();
ret |= check_posix_timers();
if (!ret)
pr_msg("Looks good.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment