aboutsummaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-01-06 16:58:54 +0100
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:02:06 +0200
commitf6ec08afb96292fd3c802c1f633d8de249664c72 (patch)
treed52d839f849f5c4723329e85662b44209bed228c /proc.h
parent37b73c0ab8cbcab4729df6d12f2dc846d4652310 (diff)
downloadltrace-f6ec08afb96292fd3c802c1f633d8de249664c72.tar.gz
Add fetch.c/fetch.h, a module for fetching function arguments
- this is now a thin wrapper over gimme_arg, ideally the backends will eventually use this right interface - in display_args.c, strip one layer of pointer wrapping, which is now done in output.c
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index f62f5f9..f530e5d 100644
--- a/proc.h
+++ b/proc.h
@@ -64,6 +64,11 @@ enum process_state {
STATE_IGNORED /* ignore this process (it's a fork and no -f was used) */
};
+struct output_state {
+ size_t params_left;
+ int need_delim;
+};
+
struct callstack_element {
union {
int syscall;
@@ -72,7 +77,9 @@ struct callstack_element {
int is_syscall;
void * return_addr;
struct timeval time_spent;
+ struct fetch_context *fetch_context;
struct value_dict *arguments;
+ struct output_state out;
};
/* XXX We should get rid of this. */