Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kernel_timex.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Copyright (c) 2019 Dmitry V. Levin <ldv@altlinux.org>
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #ifndef STRACE_KERNEL_TIMEX_H
  8. # define STRACE_KERNEL_TIMEX_H
  9. # include "kernel_timeval.h"
  10. typedef struct {
  11. unsigned int modes;
  12. int pad0;
  13. long long offset;
  14. long long freq;
  15. long long maxerror;
  16. long long esterror;
  17. int status;
  18. int pad1;
  19. long long constant;
  20. long long precision;
  21. long long tolerance;
  22. kernel_timeval64_t time;
  23. long long tick;
  24. long long ppsfreq;
  25. long long jitter;
  26. int shift;
  27. int pad2;
  28. long long stabil;
  29. long long jitcnt;
  30. long long calcnt;
  31. long long errcnt;
  32. long long stbcnt;
  33. int tai;
  34. int pad3[11];
  35. } kernel_timex64_t;
  36. # ifdef SPARC64
  37. typedef struct {
  38. unsigned int modes;
  39. int pad0;
  40. long long offset;
  41. long long freq;
  42. long long maxerror;
  43. long long esterror;
  44. int status;
  45. int pad1;
  46. long long constant;
  47. long long precision;
  48. long long tolerance;
  49. struct {
  50. long long tv_sec;
  51. int tv_usec;
  52. } time;
  53. long long tick;
  54. long long ppsfreq;
  55. long long jitter;
  56. int shift;
  57. int pad2;
  58. long long stabil;
  59. long long jitcnt;
  60. long long calcnt;
  61. long long errcnt;
  62. long long stbcnt;
  63. int tai;
  64. int pad3[11];
  65. } kernel_sparc64_timex_t;
  66. # endif /* SPARC64 */
  67. # if HAVE_ARCH_TIME32_SYSCALLS
  68. typedef struct {
  69. unsigned int modes;
  70. int offset;
  71. int freq;
  72. int maxerror;
  73. int esterror;
  74. int status;
  75. int constant;
  76. int precision;
  77. int tolerance;
  78. struct {
  79. int tv_sec;
  80. int tv_usec;
  81. } time;
  82. int tick;
  83. int ppsfreq;
  84. int jitter;
  85. int shift;
  86. int stabil;
  87. int jitcnt;
  88. int calcnt;
  89. int errcnt;
  90. int stbcnt;
  91. int tai;
  92. int pad0[11];
  93. } kernel_timex32_t;
  94. # endif /* HAVE_ARCH_TIME32_SYSCALLS */
  95. #endif /* !STRACE_KERNEL_TIMEX_H */