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-24 21:20:27 +0100 |
commit | c6bb0e49bed67c0cd53cd725f5efa09e6e94df56 (patch) | |
tree | c75a3e4e9d07b4385c1658b997edc5e5630bcf36 /src/error.c | |
parent | a7fcfb0f70301b09cea3ba59338aaa5a01bbefcb (diff) | |
download | latrace-c6bb0e49bed67c0cd53cd725f5efa09e6e94df56.tar.gz latrace-c6bb0e49bed67c0cd53cd725f5efa09e6e94df56.tar.xz latrace-c6bb0e49bed67c0cd53cd725f5efa09e6e94df56.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) { |