/kernel/linux/linux-6.6/samples/trace_events/ |
H A D | trace-events-sample.h | 70 * Here it is trace_foo_bar(char *foo, int bar). 73 * Here it is simply "foo, bar". 85 * __field(int, foo) 87 * __entry->foo = 5; 94 * __field_struct(struct bar, foo) 102 * __array( char, foo, 10) is the same as saying: char foo[10]; 106 * __entry->foo[0] = 'a'; 108 * memcpy(__entry->foo, bar, 10); 119 * __dynamic_array( int, foo, ba [all...] |
/kernel/linux/linux-5.10/samples/trace_events/ |
H A D | trace-events-sample.h | 70 * Here it is trace_foo_bar(char *foo, int bar). 73 * Here it is simply "foo, bar". 85 * __field(int, foo) 87 * __entry->foo = 5; 94 * __field_struct(struct bar, foo) 102 * __array( char, foo, 10) is the same as saying: char foo[10]; 106 * __entry->foo[0] = 'a'; 108 * memcpy(__entry->foo, bar, 10); 119 * __dynamic_array( int, foo, ba [all...] |
/kernel/linux/linux-5.10/samples/kobject/ |
H A D | kset-example.c | 18 * Then tree kobjects are created and assigned to this kset, "foo", "baz", 31 int foo; member 40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); 41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); 57 struct foo_obj *foo; in foo_attr_show() local 60 foo = to_foo_obj(kobj); in foo_attr_show() 65 return attribute->show(foo, attribute, buf); in foo_attr_show() 77 struct foo_obj *foo; in foo_attr_store() local 80 foo = to_foo_obj(kobj); in foo_attr_store() 85 return attribute->store(foo, attribut in foo_attr_store() 103 struct foo_obj *foo; foo_release() local 201 struct foo_obj *foo; create_foo_obj() local 236 destroy_foo_obj(struct foo_obj *foo) destroy_foo_obj() argument [all...] |
/kernel/linux/linux-6.6/samples/kobject/ |
H A D | kset-example.c | 18 * Then tree kobjects are created and assigned to this kset, "foo", "baz", 31 int foo; member 40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); 41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); 57 struct foo_obj *foo; in foo_attr_show() local 60 foo = to_foo_obj(kobj); in foo_attr_show() 65 return attribute->show(foo, attribute, buf); in foo_attr_show() 77 struct foo_obj *foo; in foo_attr_store() local 80 foo = to_foo_obj(kobj); in foo_attr_store() 85 return attribute->store(foo, attribut in foo_attr_store() 103 struct foo_obj *foo; foo_release() local 201 struct foo_obj *foo; create_foo_obj() local 236 destroy_foo_obj(struct foo_obj *foo) destroy_foo_obj() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_debug_virtual.c | 16 struct foo { struct 20 static struct foo *foo; variable 32 foo = kzalloc(sizeof(*foo), GFP_KERNEL); in test_debug_virtual_init() 33 if (!foo) in test_debug_virtual_init() 36 pa = virt_to_phys(foo); in test_debug_virtual_init() 37 va = foo; in test_debug_virtual_init() 46 kfree(foo); in test_debug_virtual_exit()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_debug_virtual.c | 16 struct foo { struct 20 static struct foo *foo; variable 32 foo = kzalloc(sizeof(*foo), GFP_KERNEL); in test_debug_virtual_init() 33 if (!foo) in test_debug_virtual_init() 36 pa = virt_to_phys(foo); in test_debug_virtual_init() 37 va = foo; in test_debug_virtual_init() 46 kfree(foo); in test_debug_virtual_exit()
|
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
H A D | test_uprobe_from_different_cu.sh | 20 perf probe -x ${temp_dir}/testfile -d foo || true 34 cat > ${temp_dir}/testfile-foo.h << EOF 41 extern int foo (int i, struct t *t); 44 cat > ${temp_dir}/testfile-foo.c << EOF 45 #include "testfile-foo.h" 48 foo (int i, struct t *t) 59 #include "testfile-foo.h" 72 return foo (3, &g); 76 gcc -g -Og -flto -c ${temp_dir}/testfile-foo.c -o ${temp_dir}/testfile-foo [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | test_uprobe_from_different_cu.sh | 20 perf probe -x ${temp_dir}/testfile -d foo || true 34 cat > ${temp_dir}/testfile-foo.h << EOF 41 extern int foo (int i, struct t *t); 44 cat > ${temp_dir}/testfile-foo.c << EOF 45 #include "testfile-foo.h" 48 foo (int i, struct t *t) 59 #include "testfile-foo.h" 72 return foo (3, &g); 76 gcc -g -Og -flto -c ${temp_dir}/testfile-foo.c -o ${temp_dir}/testfile-foo [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_override.c | 7 #define FOO "/foo" 8 #define BAR "/foo/bar/" 28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in test_cgroup_attach_override() local 41 foo = test__join_cgroup(FOO); in test_cgroup_attach_override() 42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in test_cgroup_attach_override() 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override() 116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in test_cgroup_attach_override() 132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRES in test_cgroup_attach_override() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_override.c | 7 #define FOO "/foo" 8 #define BAR "/foo/bar/" 28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in serial_test_cgroup_attach_override() local 41 foo = test__join_cgroup(FOO); in serial_test_cgroup_attach_override() 42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in serial_test_cgroup_attach_override() 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() 132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRES in serial_test_cgroup_attach_override() [all...] |
H A D | task_under_cgroup.c | 9 #define FOO "/foo" 14 int ret, foo; in test_task_under_cgroup() local 17 foo = test__join_cgroup(FOO); in test_task_under_cgroup() 18 if (!ASSERT_OK(foo < 0, "cgroup_join_foo")) in test_task_under_cgroup() 52 close(foo); in test_task_under_cgroup()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | verifier_helper_value_access.c | 9 long long foo; member 24 int foo[MAX_ENTRIES]; member 190 __imm_const(__imm_0, sizeof(struct test_val) - offsetof(struct test_val, foo)), in via_const_imm_full_range() 191 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_full_range() 218 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_partial_range() 244 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_empty_range() 271 __imm_const(__imm_0, sizeof(struct test_val) - offsetof(struct test_val, foo) + 8), in imm_out_of_bound_range() 272 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in imm_out_of_bound_range() 299 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_1() 326 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_2() [all...] |
H A D | linked_list_fail.c | 12 struct foo *f, *f1, *f2; \ 239 f = bpf_obj_new(struct foo); in obj_drop_non_zero_off() 249 return bpf_obj_new(struct foo)->data; in new_null_ret() 255 bpf_obj_new(struct foo); in obj_new_acq() 262 struct foo *f; in use_after_drop() 290 struct foo *f; in direct_read_lock() 301 struct foo *f; in direct_write_lock() 313 struct foo *f; in direct_read_head() 324 struct foo *f; in direct_write_head() 336 struct foo * in direct_read_node() [all...] |
H A D | verifier_array_access.c | 12 int foo[MAX_ENTRIES]; member 58 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in an_array_with_a_constant_1() 85 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 114 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 147 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 172 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in an_array_with_a_constant_2() 201 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 230 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 262 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 294 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() [all...] |
H A D | linked_list.c | 18 struct foo *f; in list_push_pop() 28 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop() 37 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop() 54 f = container_of(n, struct foo, node2); in list_push_pop() 69 f = container_of(n, struct foo, node2); in list_push_pop() 80 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop() 88 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop() 99 struct foo *f[200], *pf; in list_push_pop_multiple() 133 pf = container_of(n, struct foo, node2); in list_push_pop_multiple() 152 pf = container_of(n, struct foo, node in list_push_pop_multiple() [all...] |
H A D | test_spin_lock_fail.c | 7 struct foo { struct 15 __type(value, struct foo); 37 struct foo *f; in lock_id_kptr_preserve() 56 struct foo *f; in lock_id_mapval_preserve() 69 struct foo *f; in lock_id_innermapval_preserve() 87 struct foo *f1, *f2, *v, *iv; \ 126 struct foo *f1, *f2; in lock_id_mismatch_mapval_mapval() 150 struct foo *f1, *f2; in lock_id_mismatch_innermapval_innermapval1() 174 struct foo *f1, *f2; in lock_id_mismatch_innermapval_innermapval2()
|
H A D | test_global_func9.c | 30 __noinline int foo(const struct S *s) in foo() function 86 result |= foo(&s); in global_func9() 93 result |= foo(s); in global_func9() 99 result |= foo((const struct S *)&c); in global_func9() 103 result |= foo(NULL); in global_func9()
|
H A D | test_global_data.c | 24 struct foo { struct 34 __type(value, struct foo); 52 static const struct foo struct0 = { 57 static struct foo struct1; 58 static const struct foo struct2; 59 static struct foo struct3 = {
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_cgrp2_sock2.sh | 20 mkdir -p /tmp/cgroupv2/foo 21 echo $$ >> /tmp/cgroupv2/foo/cgroup.procs 26 test_cgrp2_sock2 /tmp/cgroupv2/foo sock_flags_kern.o $1 31 if [ -d /tmp/cgroupv2/foo ]; then 32 test_cgrp2_sock -d /tmp/cgroupv2/foo
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_global_data.c | 24 struct foo { struct 34 __type(value, struct foo); 52 static const struct foo struct0 = { 57 static struct foo struct1; 58 static const struct foo struct2; 59 static struct foo struct3 = {
|
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
H A D | ip_set_hash_ipmac.c | 44 __be32 foo[2]; member 89 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_kadt() 114 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_uadt() 151 __be32 foo[2]; member 204 { .foo[0] = 0, .foo[1] = 0 } in hash_ipmac6_kadt() 232 { .foo[0] = 0, .foo[ in hash_ipmac6_uadt() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipset/ |
H A D | ip_set_hash_ipmac.c | 44 __be32 foo[2]; member 89 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_kadt() 114 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_uadt() 151 __be32 foo[2]; member 204 { .foo[0] = 0, .foo[1] = 0 } in hash_ipmac6_kadt() 232 { .foo[0] = 0, .foo[ in hash_ipmac6_uadt() [all...] |
/kernel/linux/linux-5.10/arch/ia64/scripts/ |
H A D | check-text-align.S | 2 .proc foo 4 foo: .save rp, r2 label 7 .endp foo
|
/kernel/linux/linux-6.6/arch/ia64/scripts/ |
H A D | check-text-align.S | 2 .proc foo 4 foo: .save rp, r2 label 7 .endp foo
|
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | main.c | 34 static void gfs2_init_inode_once(void *foo) in gfs2_init_inode_once() argument 36 struct gfs2_inode *ip = foo; in gfs2_init_inode_once() 51 static void gfs2_init_glock_once(void *foo) in gfs2_init_glock_once() argument 53 struct gfs2_glock *gl = foo; in gfs2_init_glock_once() 63 static void gfs2_init_gl_aspace_once(void *foo) in gfs2_init_gl_aspace_once() argument 65 struct gfs2_glock *gl = foo; in gfs2_init_gl_aspace_once()
|