diff options
author | jolsa@redhat.com <jolsa@redhat.com> | 2011-08-15 19:10:35 +0200 |
---|---|---|
committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2011-11-13 15:49:02 +0100 |
commit | 44b522397bfad7c104a539c143a777ff236ba73e (patch) | |
tree | c6b7cc99ef5773378e22703e21e71fb8d88d2293 /src/error.c | |
parent | 12f06679f6cc13c0119427a7f14242add65991e0 (diff) | |
download | latrace-44b522397bfad7c104a539c143a777ff236ba73e.tar.gz latrace-44b522397bfad7c104a539c143a777ff236ba73e.tar.xz latrace-44b522397bfad7c104a539c143a777ff236ba73e.zip |
error simulation: add starting point for GO definition
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c index 7d1a418..fefa87d 100644 --- a/src/error.c +++ b/src/error.c @@ -388,7 +388,7 @@ static int process_go(struct lt_config_app *cfg, char *dir_base, PRINT_VERBOSE(cfg, 1, "dir '%s'\n", dir); - for(i = 0; i < go->n; i++) { + for(i = go->start; i < (go->start + go->n); i++) { struct lt_error_app_run *run; lt_list_for_each_entry(run, &go->head_run, list_go) @@ -556,7 +556,7 @@ static struct lt_error_app_run *find_run(struct lt_config_app *cfg, int lt_error_go(struct lt_config_app *cfg, struct lt_error_app_go **go, struct lt_error_app *error_app, - char *name, int n, + char *name, int start, int n, struct lt_list_head *runs) { struct lt_error_app_go *app_go = *go; @@ -571,6 +571,7 @@ int lt_error_go(struct lt_config_app *cfg, lt_init_list_head(&app_go->list); app_go->n = n; + app_go->start = start; app_go->name = name; lt_list_for_each_entry_safe(ln, h, runs, list) { |