diff options
author | jolsa@redhat.com <jolsa@redhat.com> | 2011-11-01 16:37:03 +0100 |
---|---|---|
committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2012-01-11 20:06:34 +0100 |
commit | daafe68255b0fbae2d7c1d4c696538327037b067 (patch) | |
tree | 075bf6f26c4464dbd983e240d5d227a7693d95db /src/config.h | |
parent | 363e9f3169f985b1ab2d9b22ffca1f2458581dcd (diff) | |
download | latrace-daafe68255b0fbae2d7c1d4c696538327037b067.tar.gz latrace-daafe68255b0fbae2d7c1d4c696538327037b067.tar.xz latrace-daafe68255b0fbae2d7c1d4c696538327037b067.zip |
error simulation: automated changes
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/config.h b/src/config.h index 5e44935..28215f1 100644 --- a/src/config.h +++ b/src/config.h @@ -197,9 +197,15 @@ struct lt_config_app { /* error definition (error_sim = 1 in shared config) */ struct lt_error_config *error_config; + char *error_symbols; + int error_symbols_size_names; + int error_symbols_size_total; struct lt_list_head error_symbols_all; struct lt_list_head error_symbols_current; + int error_symbols_all_cnt; + int error_finished; + int error_automated_symbol_index; }; struct lt_config_ctl { @@ -300,6 +306,7 @@ struct lt_fifo_mbase { struct lt_fifo_msym { struct lt_fifo_mbase h; + long info; int sym; int lib; int arg; @@ -385,7 +392,7 @@ int lt_fifo_recv(struct lt_config_shared *cfg, struct lt_thread *t, void *buf, int bufsize); int lt_fifo_msym_get(struct lt_config_shared *cfg, char *buf, int type, struct timeval *tv, char *symname, char *libto, - char *arg, char *argd); + char *arg, char *argd, long info); int lt_fifo_mtext_get(struct lt_config_shared *cfg, char *buf, struct timeval *tv, char *text); @@ -422,9 +429,9 @@ char* lt_objsearch(struct lt_config_audit *cfg, const char *name, int lt_stack_framesize(struct lt_config_audit *cfg, La_regs *regs); /* symbol */ -struct lt_symbol* lt_symbol_bind(struct lt_config_shared *cfg, +struct lt_symbol* lt_symbol_bind(struct lt_config_audit *cfg, void *ptr, const char *name); -struct lt_symbol* lt_symbol_get(struct lt_config_shared *cfg, +struct lt_symbol* lt_symbol_get(struct lt_config_audit *cfg, void *ptr, const char *name); /* config options */ @@ -453,14 +460,16 @@ int lt_error_run(struct lt_config_app *cfg); /* error simulation lib */ int lt_error_init(struct lt_config_audit *cfg); -struct lt_error_sym* lt_error_sym_get(struct lt_config_shared *cfg, +struct lt_error_sym* lt_error_sym_get(struct lt_config_audit *cfg, const char *name); int lt_error_sym_exit(struct lt_config_audit *cfg, + const char *symname, struct lt_symbol *sym, struct timeval *tv, struct link_map *lr, const La_regs *inregs, - La_retval *outregs); + La_retval *outregs, + long *info); int lt_error_set_retval(struct lt_config_audit *cfg, unsigned long ret, La_retval *outregs); void lt_error_get_retaddr(struct lt_config_audit *cfg, |