Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 196) sorted by relevance

12345678

/tools/perf/util/
Dtrigger.h36 #define TRIGGER_WARN_ONCE(t, exp) \ argument
37 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \
38 t->name, t->state, __func__)
40 static inline bool trigger_is_available(struct trigger *t) in trigger_is_available() argument
42 return t->state >= 0; in trigger_is_available()
45 static inline bool trigger_is_error(struct trigger *t) in trigger_is_error() argument
47 return t->state <= TRIGGER_ERROR; in trigger_is_error()
50 static inline void trigger_on(struct trigger *t) in trigger_on() argument
52 TRIGGER_WARN_ONCE(t, TRIGGER_OFF); in trigger_on()
53 t->state = TRIGGER_ON; in trigger_on()
[all …]
Dtrace-event.c28 int trace_event__init(struct trace_event *t) in trace_event__init() argument
33 t->plugin_list = tep_load_plugins(pevent); in trace_event__init()
34 t->pevent = pevent; in trace_event__init()
65 void trace_event__cleanup(struct trace_event *t) in trace_event__cleanup() argument
67 tep_unload_plugins(t->plugin_list, t->pevent); in trace_event__cleanup()
68 tep_free(t->pevent); in trace_event__cleanup()
Ddebug.h33 #define pr_time_N(n, var, t, fmt, ...) \ argument
34 eprintf_time(n, var, t, fmt, ##__VA_ARGS__)
36 #define pr_oe_time(t, fmt, ...) pr_time_N(1, debug_ordered_events, t, pr_fmt(fmt), ##__VA_ARGS__) argument
37 #define pr_oe_time2(t, fmt, ...) pr_time_N(2, debug_ordered_events, t, pr_fmt(fmt), ##__VA_ARGS__) argument
52 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __printf(4, 5);
/tools/lib/bpf/
Dbtf.h131 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() argument
133 return BTF_INFO_KIND(t->info); in btf_kind()
136 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() argument
138 return BTF_INFO_VLEN(t->info); in btf_vlen()
141 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() argument
143 return BTF_INFO_KFLAG(t->info); in btf_kflag()
146 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int() argument
148 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
151 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr() argument
153 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
[all …]
Dbtf_dump.c252 const struct btf_type *t; in btf_dump_mark_referenced() local
256 t = btf__type_by_id(d->btf, i); in btf_dump_mark_referenced()
257 vlen = btf_vlen(t); in btf_dump_mark_referenced()
259 switch (btf_kind(t)) { in btf_dump_mark_referenced()
272 d->type_states[t->type].referenced = 1; in btf_dump_mark_referenced()
276 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced()
284 const struct btf_member *m = btf_members(t); in btf_dump_mark_referenced()
291 const struct btf_param *p = btf_params(t); in btf_dump_mark_referenced()
298 const struct btf_var_secinfo *v = btf_var_secinfos(t); in btf_dump_mark_referenced()
417 const struct btf_type *t; in btf_dump_order_type() local
[all …]
Dbtf.c44 static int btf_add_type(struct btf *btf, struct btf_type *t) in btf_add_type() argument
67 btf->types[++(btf->nr_types)] = t; in btf_add_type()
141 static int btf_type_size(struct btf_type *t) in btf_type_size() argument
144 __u16 vlen = btf_vlen(t); in btf_type_size()
146 switch (btf_kind(t)) { in btf_type_size()
171 pr_debug("Unsupported BTF_KIND:%u\n", btf_kind(t)); in btf_type_size()
184 struct btf_type *t = next_type; in btf_parse_type_sec() local
188 type_size = btf_type_size(t); in btf_parse_type_sec()
192 err = btf_add_type(btf, t); in btf_parse_type_sec()
213 static bool btf_type_is_void(const struct btf_type *t) in btf_type_is_void() argument
[all …]
Dnetlink.c311 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_class_nlmsg() local
314 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg()
315 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg()
319 return dump_class_nlmsg(cookie, t, tb); in __dump_class_nlmsg()
327 struct tcmsg t; in libbpf_nl_get_class() member
332 .t.tcm_family = AF_UNSPEC, in libbpf_nl_get_class()
333 .t.tcm_ifindex = ifindex, in libbpf_nl_get_class()
350 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_qdisc_nlmsg() local
353 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_qdisc_nlmsg()
354 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg()
[all …]
/tools/perf/util/scripting-engines/
Dtrace-event-python.c207 PyObject *t; in define_value() local
214 t = PyTuple_New(4); in define_value()
215 if (!t) in define_value()
220 PyTuple_SetItem(t, n++, _PyUnicode_FromString(ev_name)); in define_value()
221 PyTuple_SetItem(t, n++, _PyUnicode_FromString(field_name)); in define_value()
222 PyTuple_SetItem(t, n++, _PyLong_FromLong(value)); in define_value()
223 PyTuple_SetItem(t, n++, _PyUnicode_FromString(field_str)); in define_value()
225 try_call_object(handler_name, t); in define_value()
227 Py_DECREF(t); in define_value()
248 PyObject *t; in define_field() local
[all …]
/tools/testing/selftests/tc-testing/
DTdcResults.py73 return sum(1 for t in self._testsuite if t.result == ResultState.fail)
76 return sum(1 for t in self._testsuite if t.result == ResultState.skip)
93 for t in self._testsuite:
94 if t.result == ResultState.fail:
96 ftap += 'ok {} {} - {}'.format(str(index), t.test_id, t.test_name)
97 if t.result == ResultState.skip or t.result == ResultState.noresult:
98 ftap += ' # skipped - {}\n'.format(t.errormsg)
99 elif t.result == ResultState.fail:
100 if len(t.steps) > 0:
102 for step in t.steps:
[all …]
/tools/testing/selftests/
Dkselftest_harness.h665 static inline void __register_test(struct __test_metadata *t) in __register_test() argument
670 __test_list = t; in __register_test()
671 t->next = NULL; in __register_test()
672 t->prev = t; in __register_test()
676 t->next = NULL; in __register_test()
677 t->prev = __test_list->prev; in __register_test()
678 t->prev->next = t; in __register_test()
679 __test_list->prev = t; in __register_test()
681 t->next = __test_list; in __register_test()
682 t->next->prev = t; in __register_test()
[all …]
/tools/usb/
Dffs-test.c336 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
337 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
338 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
339 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
340 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
379 static void init_thread(struct thread *t) in init_thread() argument
381 t->buf = malloc(t->buf_size); in init_thread()
382 die_on(!t->buf, "malloc"); in init_thread()
384 t->fd = open(t->filename, O_RDWR); in init_thread()
385 die_on(t->fd < 0, "%s", t->filename); in init_thread()
[all …]
/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c124 void print_test_case(struct test_case *t) in print_test_case() argument
129 if (t->sockopt.so_timestamp) in print_test_case()
131 if (t->sockopt.so_timestampns) in print_test_case()
133 if (t->sockopt.so_timestamping) { in print_test_case()
136 if (t->sockopt.so_timestamping & sof_flags[f].mask) in print_test_case()
141 if (t->expected.tstamp) in print_test_case()
143 if (t->expected.tstampns) in print_test_case()
145 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
147 if (t->expected.swtstamp) in print_test_case()
149 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
[all …]
/tools/perf/bench/
Dsched-pipe.c84 int t; in bench_sched_pipe() local
101 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
102 td = threads + t; in bench_sched_pipe()
104 td->nr = t; in bench_sched_pipe()
106 if (t == 0) { in bench_sched_pipe()
118 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
119 td = threads + t; in bench_sched_pipe()
125 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
126 td = threads + t; in bench_sched_pipe()
/tools/firewire/
Dnosy-dump.c162 struct link_transaction *t; in link_transaction_lookup() local
164 list_for_each_entry(t, &pending_transaction_list, link) { in link_transaction_lookup()
165 if (t->request_node == request_node && in link_transaction_lookup()
166 t->response_node == response_node && in link_transaction_lookup()
167 t->tlabel == tlabel) in link_transaction_lookup()
168 return t; in link_transaction_lookup()
171 t = malloc(sizeof *t); in link_transaction_lookup()
172 if (!t) in link_transaction_lookup()
174 t->request_node = request_node; in link_transaction_lookup()
175 t->response_node = response_node; in link_transaction_lookup()
[all …]
Ddecode-fcp.c145 decode_avc(struct link_transaction *t) in decode_avc() argument
148 (struct avc_frame *) t->request->packet.write_block.data; in decode_avc()
174 decode_fcp(struct link_transaction *t) in decode_fcp() argument
177 (struct avc_frame *) t->request->packet.write_block.data; in decode_fcp()
179 ((unsigned long long) t->request->packet.common.offset_high << 32) | in decode_fcp()
180 t->request->packet.common.offset_low; in decode_fcp()
182 if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST) in decode_fcp()
188 decode_avc(t); in decode_fcp()
/tools/accounting/
Dgetdelays.c195 #define average_ms(t, c) (t / 1000000ULL / (c ? c : 1)) argument
197 static void print_delayacct(struct taskstats *t) in print_delayacct() argument
211 (unsigned long long)t->cpu_count, in print_delayacct()
212 (unsigned long long)t->cpu_run_real_total, in print_delayacct()
213 (unsigned long long)t->cpu_run_virtual_total, in print_delayacct()
214 (unsigned long long)t->cpu_delay_total, in print_delayacct()
215 average_ms((double)t->cpu_delay_total, t->cpu_count), in print_delayacct()
217 (unsigned long long)t->blkio_count, in print_delayacct()
218 (unsigned long long)t->blkio_delay_total, in print_delayacct()
219 average_ms(t->blkio_delay_total, t->blkio_count), in print_delayacct()
[all …]
/tools/bpf/bpftool/
Dbtf_dumper.c54 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() local
55 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array()
194 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset, in btf_dumper_int() argument
201 int_type = (__u32 *)(t + 1); in btf_dumper_int()
267 const struct btf_type *t; in btf_dumper_struct() local
274 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct()
275 if (!t) in btf_dumper_struct()
278 kind_flag = BTF_INFO_KFLAG(t->info); in btf_dumper_struct()
279 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
281 m = (struct btf_member *)(t + 1); in btf_dumper_struct()
[all …]
Dbtf.c85 const struct btf_type *t) in dump_btf_type() argument
90 kind = BTF_INFO_KIND(t->info); in dump_btf_type()
97 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type()
100 btf_str(btf, t->name_off)); in dump_btf_type()
103 switch (BTF_INFO_KIND(t->info)) { in dump_btf_type()
105 __u32 v = *(__u32 *)(t + 1); in dump_btf_type()
111 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
117 t->size, BTF_INT_OFFSET(v), BTF_INT_BITS(v), in dump_btf_type()
128 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
130 printf(" type_id=%u", t->type); in dump_btf_type()
[all …]
/tools/testing/nvdimm/test/
Dnfit.c199 int (*alloc)(struct nfit_test *t);
200 void (*setup)(struct nfit_test *t);
230 static int nd_intel_test_get_fw_info(struct nfit_test *t, in nd_intel_test_get_fw_info() argument
234 struct device *dev = &t->pdev.dev; in nd_intel_test_get_fw_info()
235 struct nfit_test_fw *fw = &t->fw[idx]; in nd_intel_test_get_fw_info()
238 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info()
256 static int nd_intel_test_start_update(struct nfit_test *t, in nd_intel_test_start_update() argument
260 struct device *dev = &t->pdev.dev; in nd_intel_test_start_update()
261 struct nfit_test_fw *fw = &t->fw[idx]; in nd_intel_test_start_update()
264 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update()
[all …]
/tools/perf/tests/
Dbuiltin-test.c389 #define for_each_test(j, t) \ argument
391 for (t = &tests[j][0]; t->func; t++)
393 static int test_and_print(struct test *t, bool force_skip, int subtest) in test_and_print() argument
399 err = run_test(t, subtest); in test_and_print()
406 if (!t->subtest.get_nr) in test_and_print()
407 pr_debug("%s:", t->desc); in test_and_print()
409 pr_debug("%s subtest %d:", t->desc, subtest + 1); in test_and_print()
563 struct test *t; in __cmd_test() local
568 for_each_test(j, t) { in __cmd_test()
569 int len = strlen(t->desc); in __cmd_test()
[all …]
Dis_printable_array.c16 } t[] = { in test__is_printable_array() local
27 for (i = 0; i < ARRAY_SIZE(t); i++) { in test__is_printable_array()
30 ret = is_printable_array((char *) t[i].buf, t[i].len); in test__is_printable_array()
31 if (ret != t[i].ret) { in test__is_printable_array()
/tools/power/cpupower/utils/helpers/
Damd.c44 int t; in get_did() local
47 t = pstate.val & 0xf; in get_did()
49 t = pstate.fam17h_bits.did; in get_did()
51 t = pstate.bits.did; in get_did()
53 return t; in get_did()
58 int t; in get_cof() local
66 t = 0x10; in get_cof()
69 t = 0x8; in get_cof()
70 cof = (100 * (fid + t)) >> did; in get_cof()
/tools/perf/pmu-events/
Djson.c132 int json_line(char *map, jsmntok_t *t) in json_line() argument
134 return countchar(map, '\n', t->start) + 1; in json_line()
147 const char *json_name(jsmntok_t *t) in json_name() argument
149 return LOOKUP(jsmn_types, t->type); in json_name()
152 int json_len(jsmntok_t *t) in json_len() argument
154 return t->end - t->start; in json_len()
158 int json_streq(char *map, jsmntok_t *t, const char *s) in json_streq() argument
160 unsigned len = json_len(t); in json_streq()
161 return len == strlen(s) && !strncasecmp(map + t->start, s, len); in json_streq()
/tools/perf/tests/shell/
Dtest_uprobe_from_different_cu.sh35 struct t
41 extern int foo (int i, struct t *t);
48 foo (int i, struct t *t)
51 for (j = 0; j < i && j < t->c; j++)
52 res += t->p[j];
61 static struct t g;
/tools/perf/ui/tui/
Dutil.c77 const char *t; in ui_browser__input_window() local
79 t = text; in ui_browser__input_window()
81 const char *sep = strchr(t, '\n'); in ui_browser__input_window()
84 sep = strchr(t, '\0'); in ui_browser__input_window()
85 len = sep - t; in ui_browser__input_window()
91 t = sep + 1; in ui_browser__input_window()
167 const char *t; in __ui__info_window() local
169 t = text; in __ui__info_window()
171 const char *sep = strchr(t, '\n'); in __ui__info_window()
175 sep = strchr(t, '\0'); in __ui__info_window()
[all …]

12345678