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);
Djson.h8 void free_json(char *map, size_t size, jsmntok_t *tokens);
Djevents.c306 if (!(t)->start && (t) > tokens) \
558 jsmntok_t *tokens, *tok; in json_events() local
566 tokens = parse_json(fn, &map, &size, &len); in json_events()
567 if (!tokens) in json_events()
569 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events()
570 tok = tokens + 1; in json_events()
571 for (i = 0; i < tokens->size; i++) { in json_events()
732 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events()
735 free_json(map, size, tokens); in json_events()
/tools/arch/x86/kcpuid/
Dkcpuid.c307 char *tokens[6]; in parse_line() local
321 tokens[i] = strtok(str, ","); in parse_line()
322 if (!tokens[i]) in parse_line()
326 tokens[5] = strtok(str, "\n"); in parse_line()
327 if (!tokens[5]) in parse_line()
331 index = strtoull(tokens[0], NULL, 0); in parse_line()
350 sub = strtoul(tokens[1], NULL, 0); in parse_line()
355 buf = tokens[2]; in parse_line()
372 buf = tokens[3]; in parse_line()
383 strcpy(bdesc->simp, tokens[4]); in parse_line()
[all …]
/tools/include/uapi/linux/
Dpkt_sched.h427 __s32 tokens; member