Lines Matching defs:value
13 * value, and a "current" value. PR_SET_TIMERSLACK sets the "current"
14 * timer slack value for the calling thread.
17 * the same as the "current" value of the creating thread.
19 * - The maximum timer slack value is ULONG_MAX. On 32bit machines, it
20 * is a valid value(about 4s). On 64bit machines, it is about 500 years
21 * and no person will set this over 4s. prctl return value is int, so
22 * we test themaximum value is INT_MAX.
24 * - we also check current value via /proc/self/timerslack_ns if it is
40 static void check_get_timerslack(char *message, unsigned long value);
41 static void check_inherit_timerslack(char *message, unsigned long value);
64 static void check_get_timerslack(char *message, unsigned long value)
67 if ((unsigned long)TST_RET == value)
69 message, value);
72 message, value, TST_RET);
75 TST_ASSERT_INT(PROC_TIMERSLACK_PATH, value);
78 static void check_inherit_timerslack(char *message, unsigned long value)
89 if (current_value == value && default_value == value)
91 "%s two timer slack values are made the same as the current value(%lu) of the creating thread.",
92 message, value);
95 "%s current_value is %lu, default value is %lu, the parent current value is %lu",
96 message, current_value, default_value, value);
125 tst_res(TINFO, "current timerslack value is %lu", origin_value);