diff options
author | ddomingo <ddomingo@redhat.com> | 2008-10-09 13:12:08 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-10-09 13:12:08 +1000 |
commit | 37cda13ed305fc4887536166c232f4aee087d862 (patch) | |
tree | 6b877ba9b2ed71f32842dacb18e09732e0c307a4 /runtime/utrace_compatibility.h | |
parent | 9e522dfc27872bd28ab5a4f7fbfbfd7cc843e3cb (diff) | |
parent | 0d633db21595f7160d0f7a767ab92181284d8adb (diff) | |
download | systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.gz systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.xz systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
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_ */ |