Home
last modified time | relevance | path

Searched refs:in (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/tools/testing/selftests/bpf/progs/
A Dtest_core_autosize.c98 out->ptr = in->ptr; in handle_samesize()
99 out->val1 = in->val1; in handle_samesize()
119 out->ptr = in->ptr; in handle_downsize()
145 bpf_core_read_int(&tmp, bpf_core_field_size(in->ptr), &in->ptr); in handle_probed()
149 bpf_core_read_int(&tmp, bpf_core_field_size(in->val1), &in->val1); in handle_probed()
153 bpf_core_read_int(&tmp, bpf_core_field_size(in->val2), &in->val2); in handle_probed()
157 bpf_core_read_int(&tmp, bpf_core_field_size(in->val3), &in->val3); in handle_probed()
161 bpf_core_read_int(&tmp, bpf_core_field_size(in->val4), &in->val4); in handle_probed()
177 out->val2= in->val2; in handle_signed()
178 out->val3= in->val3; in handle_signed()
[all …]
A Dtest_core_reloc_existence.c12 char in[256]; member
44 struct core_reloc_existence *in = (void *)&data.in; in test_core_existence() local
47 out->a_exists = bpf_core_field_exists(in->a); in test_core_existence()
49 out->a_value = BPF_CORE_READ(in, a); in test_core_existence()
53 out->b_exists = bpf_core_field_exists(in->b); in test_core_existence()
55 out->b_value = BPF_CORE_READ(in, b); in test_core_existence()
59 out->c_exists = bpf_core_field_exists(in->c); in test_core_existence()
61 out->c_value = BPF_CORE_READ(in, c); in test_core_existence()
67 out->arr_value = BPF_CORE_READ(in, arr[0]); in test_core_existence()
71 out->s_exists = bpf_core_field_exists(in->s); in test_core_existence()
[all …]
A Dtest_core_reloc_ints.c12 char in[256]; member
32 struct core_reloc_ints *in = (void *)&data.in; in test_core_ints() local
35 if (CORE_READ(&out->u8_field, &in->u8_field) || in test_core_ints()
36 CORE_READ(&out->s8_field, &in->s8_field) || in test_core_ints()
37 CORE_READ(&out->u16_field, &in->u16_field) || in test_core_ints()
38 CORE_READ(&out->s16_field, &in->s16_field) || in test_core_ints()
39 CORE_READ(&out->u32_field, &in->u32_field) || in test_core_ints()
40 CORE_READ(&out->s32_field, &in->s32_field) || in test_core_ints()
41 CORE_READ(&out->u64_field, &in->u64_field) || in test_core_ints()
42 CORE_READ(&out->s64_field, &in->s64_field)) in test_core_ints()
A Dtest_core_reloc_bitfields_probed.c12 char in[256]; member
43 struct core_reloc_bitfields *in = (void *)&data.in; in test_core_bitfields() local
46 out->ub1 = BPF_CORE_READ_BITFIELD_PROBED(in, ub1); in test_core_bitfields()
47 out->ub2 = BPF_CORE_READ_BITFIELD_PROBED(in, ub2); in test_core_bitfields()
48 out->ub7 = BPF_CORE_READ_BITFIELD_PROBED(in, ub7); in test_core_bitfields()
49 out->sb4 = BPF_CORE_READ_BITFIELD_PROBED(in, sb4); in test_core_bitfields()
50 out->sb20 = BPF_CORE_READ_BITFIELD_PROBED(in, sb20); in test_core_bitfields()
51 out->u32 = BPF_CORE_READ_BITFIELD_PROBED(in, u32); in test_core_bitfields()
52 out->s32 = BPF_CORE_READ_BITFIELD_PROBED(in, s32); in test_core_bitfields()
A Dtest_core_reloc_bitfields_direct.c12 char in[256]; member
50 struct core_reloc_bitfields *in = (void *)&data.in; in test_core_bitfields_direct() local
53 out->ub1 = BPF_CORE_READ_BITFIELD(in, ub1); in test_core_bitfields_direct()
54 out->ub2 = BPF_CORE_READ_BITFIELD(in, ub2); in test_core_bitfields_direct()
55 out->ub7 = BPF_CORE_READ_BITFIELD(in, ub7); in test_core_bitfields_direct()
56 out->sb4 = BPF_CORE_READ_BITFIELD(in, sb4); in test_core_bitfields_direct()
57 out->sb20 = BPF_CORE_READ_BITFIELD(in, sb20); in test_core_bitfields_direct()
58 out->u32 = BPF_CORE_READ_BITFIELD(in, u32); in test_core_bitfields_direct()
59 out->s32 = BPF_CORE_READ_BITFIELD(in, s32); in test_core_bitfields_direct()
A Dtest_core_reloc_mods.c12 char in[256]; member
59 struct core_reloc_mods *in = (void *)&data.in; in test_core_mods() local
62 if (CORE_READ(&out->a, &in->a) || in test_core_mods()
63 CORE_READ(&out->b, &in->b) || in test_core_mods()
64 CORE_READ(&out->c, &in->c) || in test_core_mods()
65 CORE_READ(&out->d, &in->d) || in test_core_mods()
66 CORE_READ(&out->e, &in->e[2]) || in test_core_mods()
67 CORE_READ(&out->f, &in->f[1]) || in test_core_mods()
68 CORE_READ(&out->g, &in->g.x) || in test_core_mods()
69 CORE_READ(&out->h, &in->h.y)) in test_core_mods()
A Dtest_core_reloc_primitives.c12 char in[256]; member
34 struct core_reloc_primitives *in = (void *)&data.in; in test_core_primitives() local
37 if (CORE_READ(&out->a, &in->a) || in test_core_primitives()
38 CORE_READ(&out->b, &in->b) || in test_core_primitives()
39 CORE_READ(&out->c, &in->c) || in test_core_primitives()
40 CORE_READ(&out->d, &in->d) || in test_core_primitives()
41 CORE_READ(&out->f, &in->f)) in test_core_primitives()
A Dtest_core_reloc_size.c12 char in[256]; member
48 struct core_reloc_size *in = (void *)&data.in; in test_core_size() local
51 out->int_sz = bpf_core_field_size(in->int_field); in test_core_size()
52 out->int_off = bpf_core_field_offset(in->int_field); in test_core_size()
54 out->struct_sz = bpf_core_field_size(in->struct_field); in test_core_size()
55 out->struct_off = bpf_core_field_offset(in->struct_field); in test_core_size()
57 out->union_sz = bpf_core_field_size(in->union_field); in test_core_size()
58 out->union_off = bpf_core_field_offset(in->union_field); in test_core_size()
60 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size()
61 out->arr_off = bpf_core_field_offset(in->arr_field); in test_core_size()
A Dtest_core_reloc_arrays.c12 char in[256]; member
43 struct core_reloc_arrays *in = (void *)&data.in; in test_core_arrays() local
47 if (CORE_READ(&out->a2, &in->a[2])) in test_core_arrays()
49 if (CORE_READ(&out->b123, &in->b[1][2][3])) in test_core_arrays()
51 if (CORE_READ(&out->c1c, &in->c[1].c)) in test_core_arrays()
53 if (CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays()
55 if (CORE_READ(&out->f01c, &in->f[0][1].c)) in test_core_arrays()
58 a = __builtin_preserve_access_index(({ in->a; })); in test_core_arrays()
A Dtest_core_reloc_nesting.c12 char in[256]; member
39 struct core_reloc_nesting *in = (void *)&data.in; in test_core_nesting() local
42 if (CORE_READ(&out->a.a.a, &in->a.a.a)) in test_core_nesting()
44 if (CORE_READ(&out->b.b.b, &in->b.b.b)) in test_core_nesting()
A Dtest_core_reloc_ptr_as_arr.c12 char in[256]; member
25 struct core_reloc_ptr_as_arr *in = (void *)&data.in; in test_core_ptr_as_arr() local
28 if (CORE_READ(&out->a, &in[2].a)) in test_core_ptr_as_arr()
A Dtest_link_pinning.c8 int in = 0; variable
14 out = in; in raw_tp_prog()
21 out = in; in tp_btf_prog()
A Dtest_core_reloc_flavors.c12 char in[256]; member
48 struct core_reloc_flavors *in_orig = (void *)&data.in; in test_core_flavors()
49 struct core_reloc_flavors___reversed *in_rev = (void *)&data.in; in test_core_flavors()
50 struct core_reloc_flavors___weird *in_weird = (void *)&data.in; in test_core_flavors()
A Dtest_core_reloc_misc.c12 char in[256]; member
41 struct core_reloc_misc___a *in_a = (void *)&data.in; in test_core_misc()
42 struct core_reloc_misc___b *in_b = (void *)&data.in; in test_core_misc()
43 struct core_reloc_misc_extensible *in_ext = (void *)&data.in; in test_core_misc()
/tools/include/nolibc/
A Dstdlib.h205 dig = in >> pos; in utoh_r()
251 in -= lim; in utoa_r()
272 if (in < 0) { in itoa_r()
273 in = -(unsigned long)in; in itoa_r()
287 itoa_r(in, buffer); in ltoa_r()
295 char *itoa(long in) in itoa() argument
305 char *ltoa(long in) in ltoa() argument
341 uint32_t d = (pos >= 32) ? (in >> 32) : in; in u64toh_r()
387 in -= lim; in u64toa_r()
408 if (in < 0) { in i64toa_r()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dprobe_user.c18 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in serial_test_probe_user() local
53 in->sin_family = AF_INET; in serial_test_probe_user()
54 in->sin_port = htons(5555); in serial_test_probe_user()
55 in->sin_addr.s_addr = inet_addr("255.255.255.255"); in serial_test_probe_user()
70 in = (struct sockaddr_in *)&tmp; in serial_test_probe_user()
73 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user()
78 in = (struct sockaddr_in *)&curr; in serial_test_probe_user()
81 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user()
A Dsockmap_redir.c86 int in; member
93 const char *in, *out; member
107 int in[2]; member
114 &s->in[0], &s->out[0], in socket_spec_pairs()
115 &s->in[1], &s->out[1]); in socket_spec_pairs()
120 xclose(s->in[0]); in socket_spec_close()
121 xclose(s->in[1]); in socket_spec_close()
308 (!strcmp(c->in, "any") || strstarts(in, c->in)) && in is_redir_supported()
335 fd_in = s_in->in[0]; in test_socket()
397 (in->family == out->family && in test_redir()
[all …]
/tools/lib/subcmd/
A Dpager.c39 fd_set in; in pager_preexec() local
42 FD_ZERO(&in); in pager_preexec()
44 FD_SET(0, &in); in pager_preexec()
46 select(1, &in, NULL, &exception, NULL); in pager_preexec()
98 pager_process.in = -1; in setup_pager()
105 dup2(pager_process.in, 1); in setup_pager()
107 dup2(pager_process.in, 2); in setup_pager()
108 close(pager_process.in); in setup_pager()
A Drun-command.c49 cmd->in = fdin[1]; in start_command()
59 else if (cmd->in) in start_command()
60 close(cmd->in); in start_command()
71 else if (cmd->in) in start_command()
72 close(cmd->in); in start_command()
91 dup2(cmd->in, 0); in start_command()
92 close(cmd->in); in start_command()
141 else if (cmd->in) in start_command()
142 close(cmd->in); in start_command()
156 else if (cmd->in) in start_command()
[all …]
/tools/bpf/bpftool/bash-completion/
A Dbpftool13 for w in $*; do
31 for w in $*; do
178 case "$command" in
195 case $type in
224 case "$command" in
241 case $type in
274 case $prev in
314 case $cur in
335 case $object in
339 case $command in
[all …]
/tools/virtio/virtio-trace/
A DREADME41 1) Make FIFO in a host
49 trace-path-cpu{0,1,2}.{in.out}
51 agent-ctl-path.{in,out}.
53 2) Set up of virtio-serial pipe in a host
87 You can find some chardev in /dev/virtio-ports/ in the guest.
93 0) Build trace agent in a guest
96 1) Enable ftrace in the guest
100 2) Run trace agent in the guest
106 3) Open FIFO in a host
110 be solved in the future.
[all …]
/tools/perf/tests/shell/coresight/unroll_loop_thread/
A Dunroll_loop_thread.c11 unsigned int in; member
18 unsigned int i, in = a->in; in thrfn() local
35 : /* in */ [in] "r" (in) in thrfn()
67 args[i].in = rand(); in main()
/tools/testing/selftests/tc-testing/
A DREADME24 modules. To check what is required in current setup run:
39 in the tdc_config.py file. Find the 'TC' entry in the NAMES dictionary and
69 the failed test in the TAP output.
76 future). A test suite has one or more test cases in it.
96 Each of the commands in any stage will run in a shell instance.
131 was in the tdc.py script has been moved into the plugins.
156 adjust-command (runs in all stages and receives the stage name)
178 To write a plugin, you need to inherit from TdcPlugin in
182 appropriate times. There are a few examples in the plugin-lib
191 runs each command in the execute stage under valgrind,
[all …]
/tools/perf/Documentation/
A Dperf-check.txt6 perf-check - check if features are present in perf
21 compiled-in/built-in or not.
23 is built-in, otherwise returns with exit status 1.
30 Print whether feature(s) is compiled-in or not, and also returns with an
31 exit status of 0, if passed feature(s) are compiled-in, else 1.
35 list, in which case the exit status will be 0 only if all of the passed
36 features are compiled-in.
79 to hide unnecessary output in test scripts, eg.
/tools/perf/pmu-events/
A DREADME2 The contents of this directory allow users to specify PMU events in their
5 The main program in this directory, is the 'jevents', which is built and
11 - Regular files with '.json' extension in the name are assumed to be
21 events", defined in architecture standard JSONs.
22 Architecture standard JSONs must be located in the architecture root
38 folder, or may be placed in a vendor sub-folder under the arch folder
44 - Set of 'PMU events tables' for all known CPUs in the architecture,
117 Lines in which the first character is either '\n' or '#'
121 The header line is the first line in the file, which is
132 CPUID == '004b0100' (PVR value in Powerpc)
[all …]

Completed in 34 milliseconds

12345678910>>...14