Home
last modified time | relevance | path

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

12345678910

/tools/testing/selftests/bpf/progs/
Dtest_core_autosize.c89 struct test_struct___samesize *in = (void *)&input; in handle_samesize() local
92 ptr_samesized = (unsigned long long)in->ptr; in handle_samesize()
93 val1_samesized = in->val1; in handle_samesize()
94 val2_samesized = in->val2; in handle_samesize()
95 val3_samesized = in->val3; in handle_samesize()
96 val4_samesized = in->val4; in handle_samesize()
98 out->ptr = in->ptr; in handle_samesize()
99 out->val1 = in->val1; in handle_samesize()
100 out->val2 = in->val2; in handle_samesize()
101 out->val3 = in->val3; in handle_samesize()
[all …]
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()
48 if (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()
54 if (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()
60 if (bpf_core_field_exists(in->c)) in test_core_existence()
[all …]
Dtest_core_reloc_size.c12 char in[256]; member
40 struct core_reloc_size *in = (void *)&data.in; in test_core_size() local
43 out->int_sz = bpf_core_field_size(in->int_field); in test_core_size()
44 out->struct_sz = bpf_core_field_size(in->struct_field); in test_core_size()
45 out->union_sz = bpf_core_field_size(in->union_field); in test_core_size()
46 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size()
47 out->arr_elem_sz = bpf_core_field_size(in->arr_field[0]); in test_core_size()
48 out->ptr_sz = bpf_core_field_size(in->ptr_field); in test_core_size()
49 out->enum_sz = bpf_core_field_size(in->enum_field); in test_core_size()
50 out->float_sz = bpf_core_field_size(in->float_field); in test_core_size()
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()
Dtest_core_reloc_mods.c12 char in[256]; member
50 struct core_reloc_mods *in = (void *)&data.in; in test_core_mods() local
53 if (CORE_READ(&out->a, &in->a) || in test_core_mods()
54 CORE_READ(&out->b, &in->b) || in test_core_mods()
55 CORE_READ(&out->c, &in->c) || in test_core_mods()
56 CORE_READ(&out->d, &in->d) || in test_core_mods()
57 CORE_READ(&out->e, &in->e[2]) || in test_core_mods()
58 CORE_READ(&out->f, &in->f[1]) || in test_core_mods()
59 CORE_READ(&out->g, &in->g.x) || in test_core_mods()
60 CORE_READ(&out->h, &in->h.y)) in test_core_mods()
Dtest_core_reloc_bitfields_probed.c12 char in[256]; member
43 struct core_reloc_bitfields *in = (void *)&data.in; in test_core_bitfields() local
47 out->ub1 = BPF_CORE_READ_BITFIELD_PROBED(in, ub1); in test_core_bitfields()
48 out->ub2 = BPF_CORE_READ_BITFIELD_PROBED(in, ub2); in test_core_bitfields()
49 out->ub7 = BPF_CORE_READ_BITFIELD_PROBED(in, ub7); in test_core_bitfields()
50 out->sb4 = BPF_CORE_READ_BITFIELD_PROBED(in, sb4); in test_core_bitfields()
51 out->sb20 = BPF_CORE_READ_BITFIELD_PROBED(in, sb20); in test_core_bitfields()
52 out->u32 = BPF_CORE_READ_BITFIELD_PROBED(in, u32); in test_core_bitfields()
53 out->s32 = BPF_CORE_READ_BITFIELD_PROBED(in, s32); in test_core_bitfields()
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()
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()
Dtest_core_reloc_arrays.c12 char in[256]; member
42 struct core_reloc_arrays *in = (void *)&data.in; in test_core_arrays() local
45 if (CORE_READ(&out->a2, &in->a[2])) in test_core_arrays()
47 if (CORE_READ(&out->b123, &in->b[1][2][3])) in test_core_arrays()
49 if (CORE_READ(&out->c1c, &in->c[1].c)) in test_core_arrays()
51 if (CORE_READ(&out->d00d, &in->d[0][0].d)) in test_core_arrays()
53 if (CORE_READ(&out->f01c, &in->f[0][1].c)) in test_core_arrays()
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()
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()
Dtest_link_pinning.c8 int in = 0; variable
14 out = in; in raw_tp_prog()
21 out = in; in tp_btf_prog()
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()
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/perf/util/
Ddemangle-rust.c51 static bool unescape(const char **in, char **out, const char *seq, char value);
184 const char *in; in rust_demangle_sym() local
191 in = sym; in rust_demangle_sym()
195 while (in < end) in rust_demangle_sym()
196 switch (*in) { in rust_demangle_sym()
198 if (!(unescape(&in, &out, "$C$", ',') in rust_demangle_sym()
199 || unescape(&in, &out, "$SP$", '@') in rust_demangle_sym()
200 || unescape(&in, &out, "$BP$", '*') in rust_demangle_sym()
201 || unescape(&in, &out, "$RF$", '&') in rust_demangle_sym()
202 || unescape(&in, &out, "$LT$", '<') in rust_demangle_sym()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c11 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in test_probe_user() local
40 in->sin_family = AF_INET; in test_probe_user()
41 in->sin_port = htons(5555); in test_probe_user()
42 in->sin_addr.s_addr = inet_addr("255.255.255.255"); in test_probe_user()
57 in = (struct sockaddr_in *)&tmp; in test_probe_user()
60 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in test_probe_user()
65 in = (struct sockaddr_in *)&curr; in test_probe_user()
68 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in test_probe_user()
/tools/lib/subcmd/
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()
Drun-command.c40 need_in = !cmd->no_stdin && cmd->in < 0; in start_command()
47 cmd->in = fdin[1]; in start_command()
57 else if (cmd->in) in start_command()
58 close(cmd->in); in start_command()
69 else if (cmd->in) in start_command()
70 close(cmd->in); in start_command()
88 } else if (cmd->in) { in start_command()
89 dup2(cmd->in, 0); in start_command()
90 close(cmd->in); in start_command()
137 else if (cmd->in) in start_command()
[all …]
/tools/lib/traceevent/Documentation/
Dlibtraceevent-set_flag.txt27 Trace event parser context flags are defined in *enum tep_flag*:
30 _TEP_NSEC_OUTPUT_ - print event's timestamp in nano seconds, instead of micro seconds.
31 _TEP_DISABLE_SYS_PLUGINS_ - disable plugins, located in system's plugin
36 - in system's plugin directory
37 - in directory, defined by the environment variable _TRACEEVENT_PLUGIN_DIR_
38 - in user's home directory, _~/.traceevent/plugins_
60 /* Print timestamps in nanoseconds */
64 /* print timestamps in nanoseconds */
66 /* print timestamps in microseconds */
69 /* Print timestamps in microseconds */
[all …]
Dlibtraceevent-field_find.txt7 Search for a field in an event.
22 These functions search for a field with given name in an event. The field
26 in the _event_.
29 _name_ in the _event_.
31 The _tep_find_any_field()_ function searches for any field with _name_ in the
37 functions return a pointer to the found field, or NULL in case there is no field
58 /* Cannot find "common_pid" field in the event */
67 /* Cannot find "softexpires" event specific field in the event */
76 /* Cannot find "mode" field in the event */
92 Header file to include in order to have access to the library APIs.
/tools/virtio/virtio-trace/
DREADME4 Trace agent is a user tool for sending trace data of a guest to a Host in low
41 1) Make FIFO in a host
45 # mkfifo /tmp/virtio-trace/trace-path-cpu{0,1,2,...,X}.{in,out}
46 # mkfifo /tmp/virtio-trace/agent-ctl-path.{in,out}
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
[all …]
/tools/perf/Documentation/
DBuild.txt39 resulting in following objects:
40 $ ls *-in.o
41 gtk-in.o libperf-in.o perf-in.o
43 Those objects are then used in final linking:
44 libperf-gtk.so <- gtk-in.o libperf-in.o
45 perf <- perf-in.o libperf-in.o
/tools/bpf/bpftool/bash-completion/
Dbpftool8 # Takes a list of words in argument; each one of them is added to COMPREPLY if
13 for w in $*; do
31 for w in $*; do
39 # Takes a list of words in argument; adds them all to COMPREPLY if none of them
141 case "${words[$((idx-2))]}" in
178 case "$command" in
195 case $type in
224 case "$command" in
241 case $type in
270 case $prev in
[all …]
/tools/testing/selftests/tc-testing/
DREADME21 unit tests. See the config file in this directory for minimum required
24 * All tc-related features being tested must be built in or available as
25 modules. To check what is required in current setup run:
29 In the current release, tdc run will abort due to a failure in setup or
32 handled in a future version - the current workaround is to run the tests
40 in the tdc_config.py file. Find the 'TC' entry in the NAMES dictionary and
58 network namespace and creates a veth pair which may be used in those test
67 tdc will list the test names as they are being run, and print a summary in
70 the failed test in the TAP output.
76 One run of tests is considered a "test suite" (this will be refined in the
[all …]
/tools/perf/pmu-events/
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
8 The 'jevents' program tries to locate and process JSON files in the directory
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
27 should be placed in a separate JSON file - where the file name identifies
30 All the topic JSON files for a CPU model/family should be in a separate
37 The JSONs folder for a CPU model/family may be placed in the root arch
38 folder, or may be placed in a vendor sub-folder under the arch folder
[all …]

12345678910