Searched refs:tokens (Results 1 – 7 of 7) 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 | jsmn.h | 64 jsmntok_t *tokens, unsigned int num_tokens);
|
D | jevents.c | 259 if (!(t)->start && (t) > tokens) \ 515 jsmntok_t *tokens, *tok; in json_events() local 523 tokens = parse_json(fn, &map, &size, &len); in json_events() 524 if (!tokens) in json_events() 526 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events() 527 tok = tokens + 1; in json_events() 528 for (i = 0; i < tokens->size; i++) { in json_events() 686 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events() 689 free_json(map, size, tokens); in json_events()
|
D | json.h | 8 void free_json(char *map, size_t size, jsmntok_t *tokens);
|
/tools/perf/util/ |
D | cgroup.c | 20 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() local 38 mountpoint, type, tokens) == 3) { in cgroupfs_find_mountpoint() 42 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint()
|
/tools/include/uapi/linux/ |
D | pkt_sched.h | 426 __s32 tokens; member
|