<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 22, 2020 at 6:52 PM Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This adds support for time64 tests to the existing timer_gettime()<br>
syscall tests.<br>
<br>
Signed-off-by: Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>><br>
---<br>
include/tst_timer.h | 45 +++++++<br>
.../syscalls/timer_gettime/timer_gettime01.c | 124 ++++++++----------<br>
2 files changed, 97 insertions(+), 72 deletions(-)<br>
<br>
diff --git a/include/tst_timer.h b/include/tst_timer.h<br>
index 256e1d71e1bc..d9afbe0ece71 100644<br>
--- a/include/tst_timer.h<br>
+++ b/include/tst_timer.h<br>
@@ -15,6 +15,7 @@<br>
#include <sys/time.h><br>
#include <time.h><br>
#include "tst_test.h"<br>
+#include "lapi/common_timers.h"<br>
#include "lapi/syscalls.h"<br>
<br>
/*<br>
@@ -112,6 +113,16 @@ struct __kernel_timespec {<br>
__kernel_time64_t tv_sec; /* seconds */<br>
long long tv_nsec; /* nanoseconds */<br>
};<br>
+<br>
+struct __kernel_old_itimerspec {<br>
+ struct __kernel_old_timespec it_interval; /* timer period */<br>
+ struct __kernel_old_timespec it_value; /* timer expiration */<br>
+};<br>
+<br>
+struct __kernel_itimerspec {<br>
+ struct __kernel_timespec it_interval; /* timer period */<br>
+ struct __kernel_timespec it_value; /* timer expiration */<br>
+};<br>
#endif<br>
<br>
enum tst_ts_type {<br>
@@ -129,6 +140,14 @@ struct tst_ts {<br>
} ts;<br>
};<br>
<br>
+struct tst_its {<br>
+ enum tst_ts_type type;<br>
+ union {<br>
+ struct __kernel_itimerspec kern_old_its;<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I guess this line should be used 'struct __kernel_old_itimerspec', right?</div></div><div><br></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>