Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 14 of 14) sorted by relevance

/tools/perf/
Dbuiltin-record.c113 struct record *rec; member
203 static int record__threads_enabled(struct record *rec) in record__threads_enabled() argument
205 return rec->opts.threads_spec; in record__threads_enabled()
208 static bool switch_output_signal(struct record *rec) in switch_output_signal() argument
210 return rec->switch_output.signal && in switch_output_signal()
214 static bool switch_output_size(struct record *rec) in switch_output_size() argument
216 return rec->switch_output.size && in switch_output_size()
218 (rec->bytes_written >= rec->switch_output.size); in switch_output_size()
221 static bool switch_output_time(struct record *rec) in switch_output_time() argument
223 return rec->switch_output.time && in switch_output_time()
[all …]
/tools/perf/jvmti/
Djvmti_agent.c333 struct jr_code_close rec; in jvmti_close() local
341 rec.p.id = JIT_CODE_CLOSE; in jvmti_close()
342 rec.p.total_size = sizeof(rec); in jvmti_close()
344 rec.p.timestamp = perf_get_timestamp(); in jvmti_close()
346 if (!fwrite(&rec, sizeof(rec), 1, fp)) in jvmti_close()
363 struct jr_code_load rec; in jvmti_write_code() local
379 rec.p.id = JIT_CODE_LOAD; in jvmti_write_code()
380 rec.p.total_size = sizeof(rec) + sym_len; in jvmti_write_code()
381 rec.p.timestamp = perf_get_timestamp(); in jvmti_write_code()
383 rec.code_size = size; in jvmti_write_code()
[all …]
Dlibjvmti.c76 jvmtiCompiledMethodLoadInlineRecord *rec; in get_line_numbers() local
90 rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr; in get_line_numbers()
91 nr_total += rec->numpcs; in get_line_numbers()
107 rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr; in get_line_numbers()
108 for (i = 0; i < rec->numpcs; i++) { in get_line_numbers()
109 c = rec->pcinfo + i; in get_line_numbers()
/tools/testing/selftests/mm/
Dprotection_keys.c634 struct pkey_malloc_record *rec = NULL; in record_pkey_malloc() local
637 rec = &pkey_malloc_records[i]; in record_pkey_malloc()
639 if (rec) in record_pkey_malloc()
642 if (!rec) { in record_pkey_malloc()
651 rec = &pkey_malloc_records[nr_pkey_malloc_records]; in record_pkey_malloc()
657 memset(rec + i, 0, sizeof(*rec)); in record_pkey_malloc()
660 (int)(rec - pkey_malloc_records), rec, ptr, size); in record_pkey_malloc()
661 rec->ptr = ptr; in record_pkey_malloc()
662 rec->size = size; in record_pkey_malloc()
663 rec->prot = prot; in record_pkey_malloc()
[all …]
/tools/build/feature/
Dtest-jvmti-cmlr.c7 jvmtiCompiledMethodLoadInlineRecord rec __attribute__((unused)); in main() local
/tools/testing/selftests/net/
Dtls.c1763 char rec[256]; in TEST_F() local
1775 rec_len = recv(self->cfd, rec, sizeof(rec), 0); in TEST_F()
1779 EXPECT_EQ(send(self->fd2, rec, 100, 0), 100); in TEST_F()
1785 EXPECT_EQ(send(self->fd2, rec + 100, rec_len - 100, 0), rec_len - 100); in TEST_F()
1789 EXPECT_EQ(recv(self->cfd2, rec, sizeof(rec), 0), sizeof(buf)); in TEST_F()
1790 EXPECT_EQ(memcmp(buf, rec, sizeof(buf)), 0); in TEST_F()
1797 char rec[256]; in TEST_F() local
1816 rec_len = recv(self->cfd, rec, sizeof(rec), 0); in TEST_F()
1820 EXPECT_EQ(send(self->fd2, rec, 100, 0), 100); in TEST_F()
1824 EXPECT_EQ(send(self->fd2, rec + 100, rec_len - 100, 0), rec_len - 100); in TEST_F()
[all …]
/tools/lib/bpf/
Dlibbpf_internal.h414 #define for_each_btf_ext_rec(seg, sec, i, rec) \ argument
415 for (i = 0, rec = (void *)&(sec)->data; \
417 i++, rec = (void *)rec + (seg)->rec_size)
Dbtf.c4955 struct bpf_func_info_min *rec; in btf_ext_visit_type_ids() local
4957 for_each_btf_ext_rec(seg, sec, i, rec) { in btf_ext_visit_type_ids()
4958 err = visit(&rec->type_id, ctx); in btf_ext_visit_type_ids()
4966 struct bpf_core_relo *rec; in btf_ext_visit_type_ids() local
4968 for_each_btf_ext_rec(seg, sec, i, rec) { in btf_ext_visit_type_ids()
4969 err = visit(&rec->type_id, ctx); in btf_ext_visit_type_ids()
4993 struct bpf_line_info_min *rec; in btf_ext_visit_str_offs() local
4999 for_each_btf_ext_rec(seg, sec, i, rec) { in btf_ext_visit_str_offs()
5000 err = visit(&rec->file_name_off, ctx); in btf_ext_visit_str_offs()
5003 err = visit(&rec->line_off, ctx); in btf_ext_visit_str_offs()
[all …]
Dlibbpf.c5787 const struct bpf_core_relo *rec; in bpf_object__relocate_core() local
5828 for_each_btf_ext_rec(seg, sec, i, rec) { in bpf_object__relocate_core()
5829 if (rec->insn_off % BPF_INSN_SZ) in bpf_object__relocate_core()
5831 insn_idx = rec->insn_off / BPF_INSN_SZ; in bpf_object__relocate_core()
5861 err = record_relo_core(prog, rec, insn_idx); in bpf_object__relocate_core()
5871 err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); in bpf_object__relocate_core()
5878 err = bpf_core_patch_insn(prog->name, insn, insn_idx, rec, i, &targ_res); in bpf_object__relocate_core()
6063 void *rec, *rec_end, *new_prog_info; in adjust_prog_btf_ext_info() local
6075 for_each_btf_ext_rec(ext_info, sec, i, rec) { in adjust_prog_btf_ext_info()
6076 __u32 insn_off = *(__u32 *)rec / BPF_INSN_SZ; in adjust_prog_btf_ext_info()
[all …]
/tools/perf/tests/shell/
Dtest_intel_pt.sh356 struct jr_code_load rec = {
358 .p.total_size = sizeof(rec) + sz,
368 if (fwrite(&rec,sizeof(rec),1,f) != 1 ||
/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py115 for rec in self._recs:
116 if rec["objid"].weak_eq(objid):
117 return rec["value"]
/tools/memory-model/
Dlinux-kernel.bell45 let rcu-rscs = let rec
Dlinux-kernel.cat144 let rec rcu-order = rcu-gp | srcu-gp |
/tools/perf/util/
Dsort.c893 struct tep_record rec = { in get_trace_output() local
906 &seq, &rec, "%s", TEP_PRINT_INFO); in get_trace_output()