Searched refs:tokens (Results 1 – 6 of 6) sorted by relevance
/tools/perf/pmu-events/ |
D | jsmn.c | 32 jsmntok_t *tokens, size_t num_tokens) in jsmn_alloc_token() argument 38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token() 61 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_primitive() argument 103 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 118 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_string() argument 131 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string() 174 jsmntok_t *tokens, unsigned int num_tokens) in jsmn_parse() argument 188 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse() 192 tokens[parser->toksuper].size++; in jsmn_parse() 201 token = &tokens[i]; in jsmn_parse() [all …]
|
D | json.c | 86 jsmntok_t *tokens; in parse_json() local 95 tokens = malloc(sz); in parse_json() 96 if (!tokens) in parse_json() 99 res = jsmn_parse(&parser, *map, *size, tokens, in parse_json() 107 return tokens; in parse_json() 109 free(tokens); in parse_json() 115 void free_json(char *map, size_t size, jsmntok_t *tokens) in free_json() argument 117 free(tokens); in free_json()
|
D | jevents.c | 194 if (!(t)->start && (t) > tokens) \ 343 jsmntok_t *tokens, *tok; in json_events() local 350 tokens = parse_json(fn, &map, &size, &len); in json_events() 351 if (!tokens) in json_events() 353 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events() 354 tok = tokens + 1; in json_events() 355 for (i = 0; i < tokens->size; i++) { in json_events() 431 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events() 434 free_json(map, size, tokens); in json_events()
|
D | jsmn.h | 63 jsmntok_t *tokens, unsigned int num_tokens);
|
D | json.h | 7 void free_json(char *map, size_t size, jsmntok_t *tokens);
|
/tools/perf/util/ |
D | cgroup.c | 14 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() local 29 mountpoint, type, tokens) == 3) { in cgroupfs_find_mountpoint() 33 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint()
|