diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-03-19 11:28:04 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-03-19 12:17:48 -0400 |
commit | da049631393c37bad502ffac08a3805778c8d60d (patch) | |
tree | 3f89bf3e7dd0b61a46c1624733fdc57704234ef0 /runtime/utrace_compatibility.h | |
parent | 601915ab6aebff06bfc830be3b0f69976a486d9d (diff) | |
download | systemtap-steved-da049631393c37bad502ffac08a3805778c8d60d.tar.gz systemtap-steved-da049631393c37bad502ffac08a3805778c8d60d.tar.xz systemtap-steved-da049631393c37bad502ffac08a3805778c8d60d.zip |
start of rhel5 compatibility for itrace
Diffstat (limited to 'runtime/utrace_compatibility.h')
-rw-r--r-- | runtime/utrace_compatibility.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/utrace_compatibility.h b/runtime/utrace_compatibility.h index 00b841d2..4a70da42 100644 --- a/runtime/utrace_compatibility.h +++ b/runtime/utrace_compatibility.h @@ -1,6 +1,6 @@ /* * utrace compatibility defines and inlines - * Copyright (C) 2008 Red Hat Inc. + * Copyright (C) 2008-2009 Red Hat Inc. * * This file is part of systemtap, and is free software. You can * redistribute it and/or modify it under the terms of the GNU General @@ -28,6 +28,8 @@ enum utrace_resume_action { UTRACE_STOP = UTRACE_ACTION_QUIESCE, UTRACE_RESUME = UTRACE_ACTION_RESUME, UTRACE_DETACH = UTRACE_ACTION_DETACH, + UTRACE_SINGLESTEP = UTRACE_ACTION_SINGLESTEP, + UTRACE_BLOCKSTEP = UTRACE_ACTION_BLOCKSTEP, }; static inline struct utrace_attached_engine * @@ -48,6 +50,11 @@ utrace_control(struct task_struct *target, case UTRACE_STOP: return utrace_set_flags(target, engine, (engine->flags | UTRACE_ACTION_QUIESCE)); + case UTRACE_SINGLESTEP: + case UTRACE_BLOCKSTEP: + return utrace_set_flags(target, engine, + engine->flags | action); + default: return -EINVAL; } |