aboutsummaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-26 23:42:17 +0200
committerPetr Machata <pmachata@redhat.com>2012-10-26 23:42:17 +0200
commit0f6e6d9861ce790cb8b7d07aca28a5878d705359 (patch)
treef5a51847c9fb1095b19c092e697850939c29a908 /backend.h
parentd3202de1176057520f49b5e6231b8774f6b6b31f (diff)
downloadltrace-0f6e6d9861ce790cb8b7d07aca28a5878d705359.tar.gz
Add os_process_data and related
This is meant to be the same for per-OS configuration as arch_process_data is for per-arch configuration.
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend.h b/backend.h
index 24d77af..89c05c3 100644
--- a/backend.h
+++ b/backend.h
@@ -264,6 +264,15 @@ void arch_process_destroy(struct Process *proc);
int arch_process_clone(struct Process *retp, struct Process *proc);
int arch_process_exec(struct Process *proc);
+/* The following callbacks have to be implemented in OS backend if
+ * os.h defines OS_HAVE_PROCESS_DATA. The protocol is same as for,
+ * respectively, arch_process_init, arch_process_destroy,
+ * arch_process_clone and arch_process_exec. */
+int os_process_init(struct Process *proc);
+void os_process_destroy(struct Process *proc);
+int os_process_clone(struct Process *retp, struct Process *proc);
+int os_process_exec(struct Process *proc);
+
/* The following callback has to be implemented in backend if arch.h
* defines ARCH_HAVE_GET_SYM_INFO.
*