| /tools/testing/selftests/powerpc/pmu/ |
| A D | event.c | 27 memset(e, 0, sizeof(*e)); in __event_init_opts() 29 e->name = name; in __event_init_opts() 31 e->attr.type = type; in __event_init_opts() 32 e->attr.config = config; in __event_init_opts() 33 e->attr.size = sizeof(e->attr); in __event_init_opts() 40 e->attr.disabled = 1; in __event_init_opts() 71 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options() 72 if (e->fd == -1) { in event_open_with_options() 102 close(e->fd); in event_close() 124 rc = read(e->fd, &e->result, sizeof(e->result)); in event_read() [all …]
|
| A D | event.h | 32 void event_init(struct event *e, u64 config); 35 void event_init_sampling(struct event *e, u64 config); 38 int event_open_with_pid(struct event *e, pid_t pid); 39 int event_open_with_cpu(struct event *e, int cpu); 40 int event_open(struct event *e); 41 void event_close(struct event *e); 42 int event_enable(struct event *e); 43 int event_disable(struct event *e); 44 int event_reset(struct event *e); 45 int event_read(struct event *e); [all …]
|
| A D | per_event_excludes.c | 25 struct event *e, events[4]; in per_event_excludes() local 34 e = &events[0]; in per_event_excludes() 37 e->attr.disabled = 1; in per_event_excludes() 39 e = &events[1]; in per_event_excludes() 42 e->attr.disabled = 1; in per_event_excludes() 44 e->attr.exclude_hv = 1; in per_event_excludes() 46 e = &events[2]; in per_event_excludes() 49 e->attr.disabled = 1; in per_event_excludes() 53 e = &events[3]; in per_event_excludes() 56 e->attr.disabled = 1; in per_event_excludes() [all …]
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| A D | trace.c | 80 e = trace_alloc(tb, sizeof(*e) + payload_size); in trace_alloc_entry() 81 if (e) in trace_alloc_entry() 84 return e; in trace_alloc_entry() 93 if (!e) in trace_log_reg() 110 if (!e) in trace_log_counter() 130 if (!e) in trace_log_string() 147 if (!e) in trace_log_indent() 160 if (!e) in trace_log_outdent() 264 printf("entry @ %p type %d\n", e, e->type); in trace_print_entry() 288 e = p; in trace_buffer_print() [all …]
|
| /tools/testing/selftests/powerpc/pmu/event_code_tests/ |
| A D | event_alternatives_tests_p10.c | 48 e = &events[0]; in event_alternatives_tests_p10() 49 event_init(e, 0x0001e); in event_alternatives_tests_p10() 51 e = &events[1]; in event_alternatives_tests_p10() 54 e = &events[2]; in event_alternatives_tests_p10() 57 e = &events[3]; in event_alternatives_tests_p10() 60 e = &events[4]; in event_alternatives_tests_p10() 76 e = &events[0]; in event_alternatives_tests_p10() 79 e = &events[1]; in event_alternatives_tests_p10() 82 e = &events[2]; in event_alternatives_tests_p10() 85 e = &events[3]; in event_alternatives_tests_p10() [all …]
|
| A D | group_constraint_pmc_count_test.c | 21 struct event *e, events[5]; in group_constraint_pmc_count() local 33 e = &events[0]; in group_constraint_pmc_count() 34 event_init(e, 0x1001a); in group_constraint_pmc_count() 36 e = &events[1]; in group_constraint_pmc_count() 37 event_init(e, 0x200fc); in group_constraint_pmc_count() 39 e = &events[2]; in group_constraint_pmc_count() 40 event_init(e, 0x30080); in group_constraint_pmc_count() 42 e = &events[3]; in group_constraint_pmc_count() 43 event_init(e, 0x40054); in group_constraint_pmc_count() 45 e = &events[4]; in group_constraint_pmc_count() [all …]
|
| A D | group_pmc56_exclude_constraints_test.c | 22 struct event *e, events[3]; in group_pmc56_exclude_constraints() local 35 e = &events[0]; in group_pmc56_exclude_constraints() 36 event_init(e, 0x500fa); in group_pmc56_exclude_constraints() 38 e = &events[1]; in group_pmc56_exclude_constraints() 39 event_init(e, 0x600f4); in group_pmc56_exclude_constraints() 41 e = &events[2]; in group_pmc56_exclude_constraints() 42 event_init(e, 0x22C040); in group_pmc56_exclude_constraints()
|
| A D | group_constraint_unit_test.c | 29 struct event *e, events[3]; in group_constraint_unit() local 41 e = &events[0]; in group_constraint_unit() 42 event_init(e, EventCode_1); in group_constraint_unit() 48 e = &events[1]; in group_constraint_unit() 49 event_init(e, EventCode_2); in group_constraint_unit() 55 e = &events[2]; in group_constraint_unit() 56 event_init(e, EventCode_3); in group_constraint_unit()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | percpu_alloc_array.c | 29 struct elem *e; in BPF_PROG() local 33 if (!e) in BPF_PROG() 53 struct elem *e; in BPF_PROG() local 57 if (!e) in BPF_PROG() 60 p = e->pc; in BPF_PROG() 83 struct elem *e; in BPF_PROG() local 89 if (!e) in BPF_PROG() 92 p = e->pc; in BPF_PROG() 117 if (!e) in BPF_PROG() 141 if (!e) in BPF_PROG() [all …]
|
| A D | percpu_alloc_cgrp_local_storage.c | 27 struct elem *e; in BPF_PROG() local 30 e = bpf_cgrp_storage_get(&cgrp, task->cgroups->dfl_cgrp, 0, in BPF_PROG() 32 if (!e) in BPF_PROG() 39 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 53 struct elem *e; in BPF_PROG() local 56 e = bpf_cgrp_storage_get(&cgrp, task->cgroups->dfl_cgrp, 0, 0); in BPF_PROG() 57 if (!e) in BPF_PROG() 60 p = e->pc; in BPF_PROG() 82 struct elem *e; in BPF_PROG() local 90 if (!e) in BPF_PROG() [all …]
|
| A D | percpu_alloc_fail.c | 43 struct elem *e; in BPF_PROG() local 46 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG() 47 if (!e) in BPF_PROG() 54 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 68 struct elem *e; in BPF_PROG() local 71 e = bpf_map_lookup_elem(&array, &index); in BPF_PROG() 72 if (!e) in BPF_PROG() 79 p = bpf_kptr_xchg(&e->pc, p2); in BPF_PROG() 92 struct elem *e; in BPF_PROG() local 96 if (!e) in BPF_PROG() [all …]
|
| A D | tracing_struct_many_args.c | 24 void *, e, struct bpf_testmod_struct_arg_4, f) in BPF_PROG2() 30 t7_e = (long)e; in BPF_PROG2() 38 void *, e, struct bpf_testmod_struct_arg_4, f, int, ret) in BPF_PROG2() 46 void *, e, struct bpf_testmod_struct_arg_4, f, int, g) in BPF_PROG2() 52 t8_e = (long)e; in BPF_PROG2() 61 void *, e, struct bpf_testmod_struct_arg_4, f, int, g, in BPF_PROG2() 69 int BPF_PROG2(test_struct_many_args_5, __u64, a, void *, b, short, c, int, d, void *, e, in BPF_PROG2() argument 76 t9_e = (long)e; in BPF_PROG2() 88 int BPF_PROG2(test_struct_many_args_6, __u64, a, void *, b, short, c, int, d, void *, e, in BPF_PROG2() argument
|
| /tools/perf/dlfilters/ |
| A D | dlfilter-show-cycles.c | 50 struct entry *e; in find_entry() local 52 e = &table[pos]; in find_entry() 53 while (e->used) { in find_entry() 55 return e; in find_entry() 67 e->used = 1; in find_entry() 68 e->tid = tid; in find_entry() 69 return e; in find_entry() 76 if (e) in add_entry() 123 if (e) { in filter_event() 124 print_vals(e->cycles[pos], e->cycles[pos] - e->cycles_rpt[pos]); in filter_event() [all …]
|
| /tools/bpf/bpftool/ |
| A D | pids.c | 50 e->id, e->pid, e->comm); in add_ref() 55 ref->pid = e->pid; in add_ref() 67 e->id, e->pid, e->comm); in add_ref() 75 e->id, e->pid, e->comm); in add_ref() 79 ref->pid = e->pid; in add_ref() 102 struct pid_iter_entry *e; in build_obj_refs_table() local 103 char buf[4096 / sizeof(*e) * sizeof(*e)]; in build_obj_refs_table() 164 if (ret % sizeof(*e)) { in build_obj_refs_table() 169 ret /= sizeof(*e); in build_obj_refs_table() 171 e = (void *)buf; in build_obj_refs_table() [all …]
|
| A D | cfg.c | 261 e = calloc(1, sizeof(*e)); in new_edge() 262 if (!e) { in new_edge() 274 return e; in new_edge() 285 if (!e) in func_add_bb_edges() 291 if (!e) in func_add_bb_edges() 299 if (!e) in func_add_bb_edges() 301 e->src = bb; in func_add_bb_edges() 324 if (!e) in func_add_bb_edges() 367 free(e); in cfg_destroy() 372 free(e); in cfg_destroy() [all …]
|
| A D | map_perf_ring.c | 60 struct perf_event_sample *e = container_of(event, in print_bpf_output() local 72 jsonw_uint(json_wtr, e->header.type); in print_bpf_output() 77 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output() 79 jsonw_uint(json_wtr, e->time); in print_bpf_output() 81 print_data_json(e->data, e->size); in print_bpf_output() 82 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output() 93 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output() 95 e->time / 1000000000ULL, e->time % 1000000000ULL, in print_bpf_output() 97 fprint_hex(stdout, e->data, e->size, " "); in print_bpf_output() 99 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output() [all …]
|
| /tools/testing/selftests/drivers/net/ |
| A D | hds.py | 15 except NlError as e: 36 except NlError as e: 56 except NlError as e: 64 except NlError as e: 71 except NlError as e: 81 except NlError as e: 88 except NlError as e: 98 except NlError as e: 105 except NlError as e: 115 except NlError as e: [all …]
|
| /tools/testing/selftests/bpf/benchs/ |
| A D | run_bench_bloom_filter_map.sh | 13 for e in 10000 50000 75000 100000 250000 500000 750000 1000000 2500000 5000000; do 14 printf "%'d entries -\n" $e 17 "$($RUN_BENCH -p $t --nr_hash_funcs $h --nr_entries $e --value_size $v bloom-lookup)" 20 "$($RUN_BENCH -p $t --nr_hash_funcs $h --nr_entries $e --value_size $v bloom-update)" 23 "$($RUN_BENCH -p $t --nr_hash_funcs $h --nr_entries $e --value_size $v bloom-false-positive)" 34 for e in 10000 50000 75000 100000 250000 500000 750000 1000000 2500000 5000000; do 35 printf "%'d entries -\n" $e 38 "$($RUN_BENCH --nr_hash_funcs $h --nr_entries $e --value_size $v -p 8 hashmap-without-bloom)" 41 "$($RUN_BENCH --nr_hash_funcs $h --nr_entries $e --value_size $v -p 8 hashmap-with-bloom)"
|
| /tools/testing/selftests/filesystems/epoll/ |
| A D | epoll_wakeup_test.c | 52 struct epoll_event e; in waiter_entry1a() local 64 struct epoll_event e; in waiter_entry1ap() local 79 struct epoll_event e; in waiter_entry1o() local 91 struct epoll_event e; in waiter_entry1op() local 167 struct epoll_event e; in TEST() local 174 e.events = EPOLLIN; in TEST() 198 struct epoll_event e; in TEST() local 313 e.events = EPOLLIN; in TEST() 485 e.events = EPOLLIN; in TEST() 669 e.events = EPOLLIN; in TEST() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | libbpf_str.c | 25 const struct btf_enum *e; in test_libbpf_bpf_attach_type_str() local 37 e = btf_enum(t); in test_libbpf_bpf_attach_type_str() 39 for (i = 0; i < n; e++, i++) { in test_libbpf_bpf_attach_type_str() 70 const struct btf_enum *e; in test_libbpf_bpf_link_type_str() local 82 e = btf_enum(t); in test_libbpf_bpf_link_type_str() 84 for (i = 0; i < n; e++, i++) { in test_libbpf_bpf_link_type_str() 115 const struct btf_enum *e; in test_libbpf_bpf_map_type_str() local 127 e = btf_enum(t); in test_libbpf_bpf_map_type_str() 129 for (i = 0; i < n; e++, i++) { in test_libbpf_bpf_map_type_str() 172 const struct btf_enum *e; in test_libbpf_bpf_prog_type_str() local [all …]
|
| A D | get_stack_raw_tp.c | 30 struct get_stack_trace_t e; in get_stack_print_output() local 34 memset(&e, 0, sizeof(e)); in get_stack_print_output() 35 memcpy(&e, data, size <= sizeof(e) ? size : sizeof(e)); in get_stack_print_output() 63 num_stack = e.kern_stack_size / sizeof(__u64); in get_stack_print_output() 68 ks = ksym_search(e.kern_stack[i]); in get_stack_print_output() 75 if (e.user_stack_size > 0 && e.user_stack_buildid_size > 0) in get_stack_print_output()
|
| A D | libbpf_probes.c | 11 const struct btf_enum *e; in test_libbpf_probe_prog_types() local 26 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_prog_types() 27 const char *prog_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_probe_prog_types() 28 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_probe_prog_types() 51 const struct btf_enum *e; in test_libbpf_probe_map_types() local 66 for (e = btf_enum(t), i = 0, n = btf_vlen(t); i < n; e++, i++) { in test_libbpf_probe_map_types() 67 const char *map_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_probe_map_types() 68 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_probe_map_types()
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | ftrace-tcp.c | 149 if (p->family != e->family) in lookup_expected_event() 423 if (!inet_ntop(e->family, &e->src, src, INET6_ADDRSTRLEN)) in dump_trace_event() 425 if (!inet_ntop(e->family, &e->dst, dst, INET6_ADDRSTRLEN)) in dump_trace_event() 428 trace_event_names[e->type], in dump_trace_event() 429 src, e->src_port, dst, e->dst_port, e->L3index, in dump_trace_event() 430 e->fin ? "F" : "", e->syn ? "S" : "", e->rst ? "R" : "", in dump_trace_event() 431 e->psh ? "P" : "", e->ack ? "." : "", in dump_trace_event() 432 e->keyid, e->rnext, e->maclen, e->sne, e->matched); in dump_trace_event() 445 total_matched += e->matched; in print_match_stats() 446 matches_per_type[e->type] += e->matched; in print_match_stats() [all …]
|
| /tools/perf/util/ |
| A D | sha1.c | 24 e += w[i] + rol32(a, 5) + sha1_K[(i) / 20]; \ 26 e += (b & (c ^ d)) ^ d; \ 28 e += b ^ c ^ d; \ 30 e += (c & d) ^ (b & (c ^ d)); \ 37 SHA1_ROUND((i) + 0, a, b, c, d, e); \ 38 SHA1_ROUND((i) + 1, e, a, b, c, d); \ 39 SHA1_ROUND((i) + 2, d, e, a, b, c); \ 40 SHA1_ROUND((i) + 3, c, d, e, a, b); \ 41 SHA1_ROUND((i) + 4, b, c, d, e, a); \ 59 u32 e = h[4]; in sha1_blocks() local [all …]
|
| /tools/bpf/bpftool/skeleton/ |
| A D | pid_iter.bpf.c | 71 struct pid_iter_entry e; in iter() local 101 __builtin_memset(&e, 0, sizeof(e)); in iter() 102 e.pid = task->tgid; in iter() 103 e.id = get_obj_id(file->private_data, obj_type); in iter() 112 e.has_bpf_cookie = true; in iter() 113 e.bpf_cookie = get_bpf_cookie(link); in iter() 117 bpf_probe_read_kernel_str(&e.comm, sizeof(e.comm), in iter() 119 bpf_seq_write(ctx->meta->seq, &e, sizeof(e)); in iter()
|