Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 7 of 7) sorted by relevance

/tools/perf/pmu-events/
Djsmn.c32 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 …]
Djson.c86 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()
Djsmn.h64 jsmntok_t *tokens, unsigned int num_tokens);
Djevents.c259 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()
Djson.h8 void free_json(char *map, size_t size, jsmntok_t *tokens);
/tools/perf/util/
Dcgroup.c20 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/
Dpkt_sched.h426 __s32 tokens; member