summaryrefslogtreecommitdiffstats
path: root/src/error.h
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2012-01-11 23:45:18 +0100
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2012-01-11 23:45:18 +0100
commit50694d55abfdd0807e1617f84c905df330ed97a7 (patch)
treea736dab4985fcc98437a8249df251ff25a41a14d /src/error.h
parentdaafe68255b0fbae2d7c1d4c696538327037b067 (diff)
downloadlatrace-error_simulation5.tar.gz
latrace-error_simulation5.tar.xz
latrace-error_simulation5.zip
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h32
1 files changed, 27 insertions, 5 deletions
diff --git a/src/error.h b/src/error.h
index 97a16dd..b01cedb 100644
--- a/src/error.h
+++ b/src/error.h
@@ -8,8 +8,22 @@ enum {
LT_ERROR_FILTER_TYPE_INTERACTIVE,
};
-struct lt_error_config_filter {
+enum {
+ LT_ERROR_START_TYPE_AFTER,
+};
+
+struct lt_error_start {
int type;
+ union {
+ struct {
+ long entries;
+ long exits;
+ union {
+ int index;
+ char *sym;
+ } name;
+ } after;
+ };
};
struct lt_error_sym {
@@ -43,6 +57,7 @@ struct lt_error_config {
int type;
int sym_cnt;
int names_size;
+ struct lt_error_start start;
struct lt_error_sym sym[0];
};
@@ -80,10 +95,6 @@ struct lt_error_app_return {
struct lt_list_head list_run;
};
-struct lt_error_start {
- long n;
-};
-
enum {
LT_ERROR_RUN_TYPE_SEQ,
LT_ERROR_RUN_TYPE_AUTO,
@@ -138,6 +149,9 @@ int lt_error_run_args(struct lt_config_app *cfg,
int lt_error_run_type(struct lt_config_app *cfg,
struct lt_error_app_run **run,
int type);
+int lt_error_run_start_after(struct lt_config_app *cfg,
+ struct lt_error_app_run **run,
+ int is_entries, long cnt, char *sym);
int lt_error_return_ass(struct lt_config_app *cfg,
struct lt_error_app_return **ret,
char *name, struct lt_list_head *list_vals,
@@ -185,6 +199,14 @@ static inline int lt_error_run_type(struct lt_config_app *cfg,
return -1;
}
+
+static int lt_error_run_start_after(struct lt_config_app *cfg,
+ struct lt_error_app_run **run,
+ int is_entries, long cnt, char *sym)
+{
+ return -1;
+}
+
static inline int lt_error_app_init(struct lt_error_app *app)
{
return -1;