Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 46) sorted by relevance

12

/tools/perf/pmu-events/
Djsmn.c31 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
36 if ((unsigned)parser->toknext >= num_tokens) in jsmn_alloc_token()
38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
59 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
66 start = parser->pos; in jsmn_parse_primitive()
68 for (; parser->pos < len; parser->pos++) { in jsmn_parse_primitive()
69 switch (js[parser->pos]) { in jsmn_parse_primitive()
88 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
89 parser->pos = start; in jsmn_parse_primitive()
98 parser->pos = start; in jsmn_parse_primitive()
[all …]
Djsmn.h56 void jsmn_init(jsmn_parser *parser);
62 jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js,
Djson.c85 jsmn_parser parser; in parse_json() local
98 jsmn_init(&parser); in parse_json()
99 res = jsmn_parse(&parser, *map, *size, tokens, in parse_json()
106 *len = parser.toknext; in parse_json()
/tools/testing/selftests/tc-testing/
Dtdc_multibatch.py13 parser = argparse.ArgumentParser( variable
15 parser.add_argument("device", help="device name")
16 parser.add_argument("dir", help="where to put batch files")
17 parser.add_argument(
19 parser.add_argument("num_files", type=int, help="how many batch files")
20 parser.add_argument(
24 parser.add_argument(
29 parser.add_argument(
34 parser.add_argument(
40 parser.add_argument(
[all …]
Dtdc_batch.py11 parser = argparse.ArgumentParser(description='TC batch file generator') variable
12 parser.add_argument("device", help="device name")
13 parser.add_argument("file", help="batch file name")
14 parser.add_argument("-n", "--number", type=int,
16 parser.add_argument(
22 parser.add_argument("-o", "--skip_sw",
25 parser.add_argument("-s", "--share_action",
28 parser.add_argument("-p", "--prio",
31 parser.add_argument(
38 parser.add_argument(
[all …]
Dtdc.py84 def load_required_plugins(self, reqs, parser, args, remaining): argument
113 parser = self.call_add_args(parser)
114 (args, remaining) = parser.parse_known_args(args=remaining, namespace=args)
148 def call_add_args(self, parser): argument
150 parser = pgn_inst.add_args(parser)
151 return parser
452 parser = argparse.ArgumentParser(description='Linux TC unit tests')
453 return parser
456 def set_args(parser): argument
460 parser.add_argument(
[all …]
DTdcPlugin.py65 def add_args(self, parser): argument
67 self.argparser = parser
/tools/cgroup/
Diocost_coef_gen.py32 parser = argparse.ArgumentParser(description=desc, variable
34 parser.add_argument('--testdev', metavar='DEV',
36 parser.add_argument('--testfile-size-gb', type=float, metavar='GIGABYTES', default=16,
38 parser.add_argument('--duration', type=int, metavar='SECONDS', default=120,
40 parser.add_argument('--seqio-block-mb', metavar='MEGABYTES', type=int, default=128,
42 parser.add_argument('--seq-depth', type=int, metavar='DEPTH', default=64,
44 parser.add_argument('--rand-depth', type=int, metavar='DEPTH', default=64,
46 parser.add_argument('--numjobs', type=int, metavar='JOBS', default=1,
48 parser.add_argument('--quiet', action='store_true')
49 parser.add_argument('--verbose', action='store_true')
[all …]
Diocost_monitor.py24 parser = argparse.ArgumentParser(description=desc, variable
26 parser.add_argument('devname', metavar='DEV',
28 parser.add_argument('--cgroup', action='append', metavar='REGEX',
30 parser.add_argument('--interval', '-i', metavar='SECONDS', type=float, default=1,
32 parser.add_argument('--json', action='store_true',
34 args = parser.parse_args()
/tools/perf/tests/
Dattr.py142 parser = configparser.SafeConfigParser()
143 parser.read(path)
150 self.command = parser.get('config', 'command')
151 self.args = parser.get('config', 'args')
154 self.ret = parser.get('config', 'ret')
159 self.arch = parser.get('config', 'arch')
362 parser = optparse.OptionParser(usage=USAGE)
364 parser.add_option("-t", "--test",
366 parser.add_option("-d", "--test-dir",
368 parser.add_option("-p", "--perf",
[all …]
/tools/perf/scripts/python/
Dstackcollapse.py57 parser = OptionParser(option_list=option_list) variable
58 (opts, args) = parser.parse_args()
61 parser.error("unexpected command line argument")
63 parser.error("requesting tid but not comm is invalid")
65 parser.error("requesting pid but not comm is invalid")
Dsched-migration.py363 global parser
364 parser = SchedEventProxy()
368 timeslices = parser.timeslices
418 parser.migrate(headers, pid, prio, orig_cpu, dest_cpu)
427 parser.sched_switch(headers, prev_comm, prev_pid, prev_prio, prev_state,
436 parser.wake_up(headers, comm, pid, success, target_cpu, 1)
444 parser.wake_up(headers, comm, pid, success, target_cpu, 0)
/tools/hv/
Dlsvmbus8 parser = OptionParser()
9 parser.add_option(
12 (options, args) = parser.parse_args()
/tools/testing/selftests/tc-testing/plugin-lib/
DbuildebpfPlugin.py30 def add_args(self, parser): argument
31 super().add_args(parser)
DnsPlugin.py35 def add_args(self, parser): argument
36 super().add_args(parser)
/tools/lib/traceevent/Documentation/
Dlibtraceevent-record_parse.txt34 It reads the "common_type" field. The _tep_ argument is the trace event parser
38 It reads the "common_pid" field. The _tep_ argument is the trace event parser
43 the trace event parser context.
46 It reads the "common_flags" field. The _tep_ argument is the trace event parser
Dlibtraceevent-event_get.txt22 The _tep_ argument is trace event parser context, the _index_ is the index of
27 beginning of the array. The _tep_ argument is trace event parser context.
30 in the array. The _tep_ argument is trace event parser context.
Dlibtraceevent-handle.txt7 references of trace event parser context.
25 structure, representing the trace event parser context. This context is used as
33 the pointer to the trace event parser context.
Dlibtraceevent-func_apis.txt37 kernel functions resolver. The _tep_ argument is trace event parser context.
44 resolver to the default function. The _tep_ argument is trace event parser
53 given address _addr_. The _tep_ argument is the trace event parser context.
58 parser context.
64 function. The _tep_ argument is the trace event parser context. The _name_ is
74 addresses and those strings. The _tep_ argument is the trace event parser
Dlibtraceevent-long_size.txt22 where the trace is generated. The _tep_ argument is trace event parser context.
25 where the trace is generated. The _tep_ argument is trace event parser context.
Dlibtraceevent-cpus.txt22 buffer representing it. The _tep_ argument is trace event parser context.
25 buffer representing it. The _tep_ argument is trace event parser context.
Dlibtraceevent-file_endian.txt27 being accessed by the tep handler. The _tep_ argument is trace event parser
31 accessed by the tep handler. The _tep_ argument is trace event parser context.
Dlibtraceevent-page_size.txt23 event parser context.
27 The _tep_ argument is trace event parser context.
Dlibtraceevent-reg_print_func.txt37 argument is the trace event parser context. The _func_ argument is a pointer
46 trace event parser context. The _func_ and _name_ arguments are the same, used
86 The user space event parser has no idea how to handle this _yesno()_ function.
111 Now, when the event parser encounters this yesno() function, it will know
Dlibtraceevent-func_find.txt25 given address _addr_. The _tep_ argument is the trace event parser context.
29 function that would contain it. The _tep_ argument is the trace event parser context.

12