diff options
author | Mark Wielaard <mjw@redhat.com> | 2008-10-06 19:36:56 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2008-10-06 19:36:56 +0200 |
commit | 11b554d5bbf00a810df8eff6718630ee5ad0c3b1 (patch) | |
tree | c0ca138080766614aa7a3c219cd4b5d58d8edaa9 /runtime/utrace_compatibility.h | |
parent | a2b182f549cf64427a474803f3c02286b8c1b5e1 (diff) | |
download | systemtap-steved-11b554d5bbf00a810df8eff6718630ee5ad0c3b1.tar.gz systemtap-steved-11b554d5bbf00a810df8eff6718630ee5ad0c3b1.tar.xz systemtap-steved-11b554d5bbf00a810df8eff6718630ee5ad0c3b1.zip |
Add workaround for fedora 9 2.6.26 kernels to utrace_compatibility.h.
Diffstat (limited to 'runtime/utrace_compatibility.h')
-rw-r--r-- | runtime/utrace_compatibility.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/runtime/utrace_compatibility.h b/runtime/utrace_compatibility.h index 27fca250..00b841d2 100644 --- a/runtime/utrace_compatibility.h +++ b/runtime/utrace_compatibility.h @@ -73,6 +73,27 @@ utrace_barrier(struct task_struct *target, { return 0; } -#endif +#else +#ifdef UTRACE_HIDE_EVENT +/* This is only for some fedora 9 2.6.26 kernels that don't have + * UTRACE_ACTION_RESUME defined, but do define UTRACE_HIDE_EVENT. + * It isn't really a recommended version, but it does compile and + * run mostly. It has one renamed function. + */ +#define utrace_attach_task utrace_attach +static inline void +utrace_engine_put(struct utrace_attached_engine *engine) +{ + return; +} + +static inline int __must_check +utrace_barrier(struct task_struct *target, + struct utrace_attached_engine *engine) +{ + return 0; +} +#endif /* UTRACE_HIDE_EVENT */ +#endif /* UTRACE_ACTION_RESUME */ #endif /* _UTRACE_COMPATIBILITY_H_ */ |