Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 185) sorted by relevance

12345678

/tools/testing/selftests/powerpc/pmu/
Devent.c23 void event_init_opts(struct event *e, u64 config, int type, char *name) in event_init_opts() argument
25 memset(e, 0, sizeof(*e)); in event_init_opts()
27 e->name = name; in event_init_opts()
29 e->attr.type = type; in event_init_opts()
30 e->attr.config = config; in event_init_opts()
31 e->attr.size = sizeof(e->attr); in event_init_opts()
33 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in event_init_opts()
37 void event_init_named(struct event *e, u64 config, char *name) in event_init_named() argument
39 event_init_opts(e, config, PERF_TYPE_RAW, name); in event_init_named()
42 void event_init(struct event *e, u64 config) in event_init() argument
[all …]
Dper_event_excludes.c25 struct event *e, events[4]; in per_event_excludes() local
34 e = &events[0]; in per_event_excludes()
35 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes()
37 e->attr.disabled = 1; in per_event_excludes()
39 e = &events[1]; in per_event_excludes()
40 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes()
42 e->attr.disabled = 1; in per_event_excludes()
43 e->attr.exclude_user = 1; in per_event_excludes()
44 e->attr.exclude_hv = 1; in per_event_excludes()
46 e = &events[2]; in per_event_excludes()
[all …]
Devent.h27 void event_init(struct event *e, u64 config);
28 void event_init_named(struct event *e, u64 config, char *name);
29 void event_init_opts(struct event *e, u64 config, int type, char *name);
30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd);
31 int event_open_with_group(struct event *e, int group_fd);
32 int event_open_with_pid(struct event *e, pid_t pid);
33 int event_open_with_cpu(struct event *e, int cpu);
34 int event_open(struct event *e);
35 void event_close(struct event *e);
36 int event_enable(struct event *e);
[all …]
Dcount_instructions.c19 static void setup_event(struct event *e, u64 config, char *name) in setup_event() argument
21 event_init_opts(e, config, PERF_TYPE_HARDWARE, name); in setup_event()
23 e->attr.disabled = 1; in setup_event()
24 e->attr.exclude_kernel = 1; in setup_event()
25 e->attr.exclude_hv = 1; in setup_event()
26 e->attr.exclude_idle = 1; in setup_event()
Dcount_stcx_fail.c19 static void setup_event(struct event *e, u64 config, int type, char *name) in setup_event() argument
21 event_init_opts(e, config, type, name); in setup_event()
23 e->attr.disabled = 1; in setup_event()
24 e->attr.exclude_kernel = 1; in setup_event()
25 e->attr.exclude_hv = 1; in setup_event()
26 e->attr.exclude_idle = 1; in setup_event()
/tools/testing/selftests/powerpc/pmu/ebb/
Dtrace.c78 struct trace_entry *e; in trace_alloc_entry() local
80 e = trace_alloc(tb, sizeof(*e) + payload_size); in trace_alloc_entry()
81 if (e) in trace_alloc_entry()
82 e->length = payload_size; in trace_alloc_entry()
84 return e; in trace_alloc_entry()
89 struct trace_entry *e; in trace_log_reg() local
92 e = trace_alloc_entry(tb, sizeof(reg) + sizeof(value)); in trace_log_reg()
93 if (!e) in trace_log_reg()
96 e->type = TRACE_TYPE_REG; in trace_log_reg()
97 p = (u64 *)e->data; in trace_log_reg()
[all …]
Debb.h47 void event_leader_ebb_init(struct event *e);
48 void event_ebb_init(struct event *e);
49 void event_bhrb_init(struct event *e, unsigned ifm);
52 int ebb_event_enable(struct event *e);
58 void event_ebb_init(struct event *e);
59 void event_leader_ebb_init(struct event *e);
Debb.c275 int ebb_event_enable(struct event *e) in ebb_event_enable() argument
282 rc = ioctl(e->fd, PERF_EVENT_IOC_ENABLE); in ebb_event_enable()
286 rc = event_read(e); in ebb_event_enable()
331 void event_ebb_init(struct event *e) in event_ebb_init() argument
333 e->attr.config |= (1ull << 63); in event_ebb_init()
336 void event_bhrb_init(struct event *e, unsigned ifm) in event_bhrb_init() argument
338 e->attr.config |= (1ull << 62) | ((u64)ifm << 60); in event_bhrb_init()
341 void event_leader_ebb_init(struct event *e) in event_leader_ebb_init() argument
343 event_ebb_init(e); in event_leader_ebb_init()
345 e->attr.exclusive = 1; in event_leader_ebb_init()
[all …]
/tools/bpf/bpftool/
Dpids.c28 static void add_ref(struct obj_refs_table *table, struct pid_iter_entry *e) in add_ref() argument
35 hash_for_each_possible(table->table, refs, node, e->id) { in add_ref()
36 if (refs->id != e->id) in add_ref()
40 if (refs->refs[i].pid == e->pid) in add_ref()
47 e->id, e->pid, e->comm); in add_ref()
52 ref->pid = e->pid; in add_ref()
53 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref()
63 e->id, e->pid, e->comm); in add_ref()
67 refs->id = e->id; in add_ref()
72 e->id, e->pid, e->comm); in add_ref()
[all …]
Dcfg.c259 struct edge_node *e; in new_edge() local
261 e = calloc(1, sizeof(*e)); in new_edge()
262 if (!e) { in new_edge()
268 e->src = src; in new_edge()
270 e->dst = dst; in new_edge()
272 e->flags |= flags; in new_edge()
274 return e; in new_edge()
280 struct edge_node *e; in func_add_bb_edges() local
284 e = new_edge(bb, bb_next(bb), EDGE_FLAG_FALLTHROUGH); in func_add_bb_edges()
285 if (!e) in func_add_bb_edges()
[all …]
Dmap_perf_ring.c68 struct perf_event_sample *e = container_of(event, in print_bpf_output() local
80 jsonw_uint(json_wtr, e->header.type); in print_bpf_output()
85 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output()
87 jsonw_uint(json_wtr, e->time); in print_bpf_output()
89 print_data_json(e->data, e->size); in print_bpf_output()
90 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output()
101 if (e->header.type == PERF_RECORD_SAMPLE) { in print_bpf_output()
103 e->time / 1000000000ULL, e->time % 1000000000ULL, in print_bpf_output()
105 fprint_hex(stdout, e->data, e->size, " "); in print_bpf_output()
107 } else if (e->header.type == PERF_RECORD_LOST) { in print_bpf_output()
[all …]
/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c37 struct epoll_event e; in waiter_entry1a() local
40 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a()
49 struct epoll_event e; in waiter_entry1ap() local
55 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap()
64 struct epoll_event e; in waiter_entry1o() local
67 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o()
76 struct epoll_event e; in waiter_entry1op() local
82 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1op()
152 struct epoll_event e; in TEST() local
159 e.events = EPOLLIN; in TEST()
[all …]
/tools/bpf/bpftool/skeleton/
Dpid_iter.bpf.c46 struct pid_iter_entry e; in iter() local
72 e.pid = task->tgid; in iter()
73 e.id = get_obj_id(file->private_data, obj_type); in iter()
74 bpf_probe_read_kernel(&e.comm, sizeof(e.comm), in iter()
76 bpf_seq_write(ctx->meta->seq, &e, sizeof(e)); in iter()
/tools/testing/kunit/
Dkunit_kernel.py40 except OSError as e:
41 raise ConfigError('Could not call make command: ' + str(e))
42 except subprocess.CalledProcessError as e:
43 raise ConfigError(e.output.decode())
53 except OSError as e:
54 raise ConfigError('Could not call make command: ' + str(e))
55 except subprocess.CalledProcessError as e:
56 raise ConfigError(e.output.decode())
90 except OSError as e:
91 raise BuildError('Could not call make command: ' + str(e))
[all …]
/tools/include/linux/
Dbuild_bug.h8 #define BUILD_BUG_ON_ZERO(e) (0) argument
16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) argument
30 #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e)))) argument
Dbug.h9 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) argument
/tools/lib/bpf/
Dbpf_core_read.h239 #define ___last6(a, b, c, d, e, x) x argument
240 #define ___last7(a, b, c, d, e, f, x) x argument
241 #define ___last8(a, b, c, d, e, f, g, x) x argument
242 #define ___last9(a, b, c, d, e, f, g, h, x) x argument
243 #define ___last10(a, b, c, d, e, f, g, h, i, x) x argument
250 #define ___nolast6(a, b, c, d, e, _) a, b, c, d, e argument
251 #define ___nolast7(a, b, c, d, e, f, _) a, b, c, d, e, f argument
252 #define ___nolast8(a, b, c, d, e, f, g, _) a, b, c, d, e, f, g argument
253 #define ___nolast9(a, b, c, d, e, f, g, h, _) a, b, c, d, e, f, g, h argument
254 #define ___nolast10(a, b, c, d, e, f, g, h, i, _) a, b, c, d, e, f, g, h, i argument
[all …]
/tools/perf/util/
Dgenelf.c158 jit_add_eh_frame_info(Elf *e, void* unwinding, uint64_t unwinding_header_size, in jit_add_eh_frame_info() argument
169 scn = elf_newscn(e); in jit_add_eh_frame_info()
203 scn = elf_newscn(e); in jit_add_eh_frame_info()
250 Elf *e; in jit_write_elf() local
266 e = elf_begin(fd, ELF_C_WRITE, NULL); in jit_write_elf()
267 if (!e) { in jit_write_elf()
275 ehdr = elf_newehdr(e); in jit_write_elf()
292 phdr = elf_newphdr(e, 1); in jit_write_elf()
305 scn = elf_newscn(e); in jit_write_elf()
341 retval = jit_add_eh_frame_info(e, unwinding, in jit_write_elf()
[all …]
/tools/perf/Documentation/
Dexamples.txt6 [ From an e-mail by Ingo Molnar, http://lkml.org/lkml/2009/8/4/346 ]
31 titan:~> perf stat -e kmem:mm_page_pcpu_drain -e kmem:mm_page_alloc
32 -e kmem:mm_page_free_batched -e kmem:mm_page_free ./hackbench 10
47 titan:~> perf stat --repeat 5 -e kmem:mm_page_pcpu_drain -e
48 kmem:mm_page_alloc -e kmem:mm_page_free_batched -e
69 titan:~/git> perf record -e kmem:mm_page_alloc -c 1 ./git gc
123 titan:~/git> perf record -g -e kmem:mm_page_alloc -c 1 ./git gc
160 titan:~/git> perf stat -a -e kmem:mm_page_pcpu_drain -e
161 kmem:mm_page_alloc -e kmem:mm_page_free_batched -e
176 titan:~/git> perf stat --repeat 10 -a -e kmem:mm_page_pcpu_drain -e
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_mods.c17 int a, b, c, d, e, f, g, h; member
39 int e[3]; member
57 CORE_READ(&out->e, &in->e[2]) || in test_core_mods()
Dbtf_dump_test_case_syntax.c84 int e[5];
104 ptr_arr_t e; member
139 enum e2 e; member
169 int e; member
184 } e; member
Dfentry_test.c43 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e) in BPF_PROG() argument
46 e == 15; in BPF_PROG()
52 int BPF_PROG(test6, __u64 a, void *b, short c, int d, void * e, __u64 f) in BPF_PROG() argument
55 e == (void *)20 && f == 21; in BPF_PROG()
Dfexit_test.c44 int BPF_PROG(test5, __u64 a, void *b, short c, int d, __u64 e, int ret) in BPF_PROG() argument
47 e == 15 && ret == 65; in BPF_PROG()
53 int BPF_PROG(test6, __u64 a, void *b, short c, int d, void *e, __u64 f, int ret) in BPF_PROG() argument
56 e == (void *)20 && f == 21 && ret == 111; in BPF_PROG()
/tools/build/tests/ex/
Dex.c7 int e(void);
17 e(); in main()
/tools/testing/selftests/powerpc/security/
Dspectre_v2.c64 static void setup_event(struct event *e, u64 config, char *name) in setup_event() argument
66 event_init_named(e, config, name); in setup_event()
68 e->attr.disabled = 1; in setup_event()
69 e->attr.exclude_kernel = 1; in setup_event()
70 e->attr.exclude_hv = 1; in setup_event()
71 e->attr.exclude_idle = 1; in setup_event()

12345678