diff options
-rw-r--r-- | kernel/trace/tracing_map.c | 4 | ||||
-rw-r--r-- | kernel/trace/tracing_map.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/kernel/trace/tracing_map.c b/kernel/trace/tracing_map.c index dd6401dd145e..e0f172932eca 100644 --- a/kernel/trace/tracing_map.c +++ b/kernel/trace/tracing_map.c | |||
@@ -163,7 +163,7 @@ static int tracing_map_add_field(struct tracing_map *map, | |||
163 | * tracing_map_update_sum() or reading it via tracing_map_read_sum(). | 163 | * tracing_map_update_sum() or reading it via tracing_map_read_sum(). |
164 | * | 164 | * |
165 | * Return: The index identifying the field in the map and associated | 165 | * Return: The index identifying the field in the map and associated |
166 | * tracing_map_elts. | 166 | * tracing_map_elts, or -EINVAL on error. |
167 | */ | 167 | */ |
168 | int tracing_map_add_sum_field(struct tracing_map *map) | 168 | int tracing_map_add_sum_field(struct tracing_map *map) |
169 | { | 169 | { |
@@ -184,7 +184,7 @@ int tracing_map_add_sum_field(struct tracing_map *map) | |||
184 | * the key referenced by this key field resides. | 184 | * the key referenced by this key field resides. |
185 | * | 185 | * |
186 | * Return: The index identifying the field in the map and associated | 186 | * Return: The index identifying the field in the map and associated |
187 | * tracing_map_elts. | 187 | * tracing_map_elts, or -EINVAL on error. |
188 | */ | 188 | */ |
189 | int tracing_map_add_key_field(struct tracing_map *map, | 189 | int tracing_map_add_key_field(struct tracing_map *map, |
190 | unsigned int offset, | 190 | unsigned int offset, |
diff --git a/kernel/trace/tracing_map.h b/kernel/trace/tracing_map.h index 1f7eda548787..618838f5f30a 100644 --- a/kernel/trace/tracing_map.h +++ b/kernel/trace/tracing_map.h | |||
@@ -5,9 +5,10 @@ | |||
5 | #define TRACING_MAP_BITS_MAX 17 | 5 | #define TRACING_MAP_BITS_MAX 17 |
6 | #define TRACING_MAP_BITS_MIN 7 | 6 | #define TRACING_MAP_BITS_MIN 7 |
7 | 7 | ||
8 | #define TRACING_MAP_FIELDS_MAX 4 | ||
9 | #define TRACING_MAP_KEYS_MAX 2 | 8 | #define TRACING_MAP_KEYS_MAX 2 |
10 | 9 | #define TRACING_MAP_VALS_MAX 3 | |
10 | #define TRACING_MAP_FIELDS_MAX (TRACING_MAP_KEYS_MAX + \ | ||
11 | TRACING_MAP_VALS_MAX) | ||
11 | #define TRACING_MAP_SORT_KEYS_MAX 2 | 12 | #define TRACING_MAP_SORT_KEYS_MAX 2 |
12 | 13 | ||
13 | typedef int (*tracing_map_cmp_fn_t) (void *val_a, void *val_b); | 14 | typedef int (*tracing_map_cmp_fn_t) (void *val_a, void *val_b); |