]> sourceware.org Git - systemtap.git/commitdiff
tapset: _struct_compat_timex_u() support after renaming to old_timex32
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 11 Dec 2019 20:28:46 +0000 (15:28 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 11 Dec 2019 20:28:46 +0000 (15:28 -0500)
Kernel commit 4d5f007eedb74d (v5.1+) renames the old compat_timex
structure to old_timex32.

tapset/linux/aux_syscalls.stp

index 3e7e464f5f731cd14c6033d77bfe10f43bb206c6..4c39678c67bbbdc07c958487d867a60906e7ac2a 100644 (file)
@@ -5282,7 +5282,10 @@ function _struct_timex_u:string(uaddr:long)
 
 function _struct_compat_timex_u:string(uaddr:long)
 %{ /* pure */
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_COMPAT)
+#if defined(CONFIG_COMPAT_32BIT_TIME)
+#define compat_timex old_timex32
+#endif
        struct compat_timex ts;
        char *ptr = (char *)(uintptr_t)STAP_ARG_uaddr;
        int len;
@@ -5310,6 +5313,9 @@ function _struct_compat_timex_u:string(uaddr:long)
                                 (unsigned long)ptr);
                }
        }
+#if defined(CONFIG_COMPAT_32BIT_TIME)
+#undef compat_timex
+#endif
 #endif
 %}
 
This page took 0.032185 seconds and 5 git commands to generate.