Home
last modified time | relevance | path

Searched full:foo (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/linux/samples/trace_events/
H A Dtrace-events-sample.h70 * 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, bar) is similar to: int foo[bar];
124 * memcpy(__get_dynamic_array(foo), bar, 10);
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_veristat.c243 * veristat_bar.bpf.o, both defining programs 'foo', 'bar' and 'buz'.
258 { "", "foo", "foo", true },
259 { "", "foo", "bar", true },
260 { "", "foo", "buz", true },
261 { "", "bar", "foo", true },
265 { "-f '!*foo*'", "foo", "bar", false },
266 { "-f '!*foo*'", "bar", "foo", false },
267 { "-f '!*foo*'", "bar", "bar", true },
268 { "-f '!*foo*/bar'", "foo", "bar", false },
269 { "-f '!*foo*/bar'", "foo", "buz", true },
[all …]
H A Dcgroup_attach_override.c7 #define FOO "/foo" macro
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()
48 "attach prog to %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
89 "detach prog from %s failed, errno=%d\n", FOO, errno)) in serial_test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
[all …]
H A Dlinked_list.c89 "operation on bpf_list_head expects arg#1 bpf_list_node at offset=48 in struct foo, "
93 { "incorrect_node_off2", "arg#1 offset=0, but expected bpf_list_node at offset=48 in struct foo" },
313 foo_btf_id = btf__add_struct(btf, "foo", 20); in list_and_rb_node_same_struct()
314 if (!ASSERT_GT(foo_btf_id, 0, "btf__add_struct foo")) in list_and_rb_node_same_struct()
317 if (!ASSERT_OK(err, "btf__add_field foo::a")) in list_and_rb_node_same_struct()
320 if (!ASSERT_OK(err, "btf__add_field foo::b")) in list_and_rb_node_same_struct()
340 id = btf__add_struct(btf, "foo", 24); in test_btf()
341 if (!ASSERT_EQ(id, 5, "btf__add_struct foo")) in test_btf()
344 if (!ASSERT_OK(err, "btf__add_struct foo::a")) in test_btf()
347 if (!ASSERT_OK(err, "btf__add_struct foo::a")) in test_btf()
[all …]
H A Dtask_under_cgroup.c9 #define FOO "/foo" macro
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()
27 skel->rodata->cgid = get_cgroup_id(FOO); in test_task_under_cgroup()
59 close(foo); in test_task_under_cgroup()
/linux/Documentation/translations/zh_CN/admin-guide/
H A Dbootconfig.rst46 foo.bar.baz = value1
47 foo.bar.qux.quux = value2
51 foo.bar {
58 foo.bar { baz = value1; qux.quux = value2 }
68 foo = bar, baz
69 foo = qux # !错误! 我们不可以重定义相同的关键字
73 foo = bar, baz
74 foo := qux
76 这样 ``foo`` 关键字的值就变成了 ``qux`` 。这对于通过添加(部分)自定义引导
81 foo = bar, baz
[all …]
/linux/Documentation/translations/zh_TW/admin-guide/
H A Dbootconfig.rst46 foo.bar.baz = value1
47 foo.bar.qux.quux = value2
51 foo.bar {
58 foo.bar { baz = value1; qux.quux = value2 }
68 foo = bar, baz
69 foo = qux # !錯誤! 我們不可以重定義相同的關鍵字
73 foo = bar, baz
74 foo := qux
76 這樣 ``foo`` 關鍵字的值就變成了 ``qux`` 。這對於通過添加(部分)自定義引導
81 foo = bar, baz
[all …]
/linux/samples/kobject/
H A Dkset-example.c18 * Then three kobjects are created and assigned to this kset, "foo", "baz",
31 int foo; member
40 ssize_t (*show)(struct foo_obj *foo, const struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, const struct foo_attribute *attr,
58 struct foo_obj *foo; in foo_attr_show() local
61 foo = to_foo_obj(kobj); in foo_attr_show()
66 return attribute->show(foo, attribute, buf); in foo_attr_show()
78 struct foo_obj *foo; in foo_attr_store() local
81 foo = to_foo_obj(kobj); in foo_attr_store()
86 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
[all …]
/linux/tools/memory-model/Documentation/
H A Daccess-marking.txt243 For example, ASSERT_EXCLUSIVE_ACCESS(foo) tells KCSAN that any
244 concurrent access to variable foo by any other CPU is an error, even
246 ASSERT_EXCLUSIVE_WRITER(foo) tells KCSAN that although it is OK for there
247 to be concurrent reads from foo from other CPUs, it is an error for some
248 other CPU to be concurrently writing to foo, even if that concurrent
269 For example, suppose a shared variable "foo" is read only while a
274 int foo;
280 foo = newval;
291 ret = foo;
298 pr_info("Current value of foo: %d\n", data_race(foo));
[all …]
/linux/tools/testing/selftests/ftrace/test.d/instances/
H A Dinstance-event.tc7 rmdir foo 2>/dev/null
29 mkdir foo 2> /dev/null
30 rmdir foo 2> /dev/null
36 cat foo/trace 1> /dev/null 2>&1
42 echo 1 > foo/events/sched/sched_switch/enable
69 mkdir foo
70 ls foo > /dev/null
71 rmdir foo
72 if [ -d foo ]; then
73 fail "foo still exists"
[all …]
/linux/arch/x86/include/asm/
H A Dcfi.h18 * foo:
23 * call foo
26 * lea foo(%rip), %r11
33 * foo:
39 * call foo / call foo+4
42 * lea foo(%rip), %r11
52 * foo:
58 * call foo # / call foo+4 when IBT
61 * lea foo(%rip), %r11
75 * jne.32,pn foo+3
[all …]
/linux/tools/perf/tests/shell/
H A Dtest_uprobe_from_different_cu.sh26 perf probe -x ${temp_dir}/testfile -d foo || true
40 cat > ${temp_dir}/testfile-foo.h << EOF
47 extern int foo (int i, struct t *t);
50 cat > ${temp_dir}/testfile-foo.c << EOF
51 #include "testfile-foo.h"
54 foo (int i, struct t *t)
65 #include "testfile-foo.h"
78 return foo (3, &g);
82 gcc -g -Og -flto -c ${temp_dir}/testfile-foo.c -o ${temp_dir}/testfile-foo
[all...]
/linux/rust/pin-init/
H A DREADME.md96 struct Foo {
102 let foo = pin_init!(Foo {
108 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like
109 (or just the stack) to actually initialize a `Foo`:
112 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
170 pub struct foo {
[all...]
/linux/tools/testing/selftests/ftrace/test.d/dynevent/
H A Deprobes_syntax_errors.tc13 check_error 'e syscalls/sys_enter_openat ^foo' # NO_EVENT_FIELD
17 check_error 'e:^foo.1/bar syscalls/sys_enter_openat' # BAD_GROUP_NAME
19 check_error 'e:foo/^12345678901234567890123456789012345678901234567890123456789012345 syscalls/sys_…
20 check_error 'e:foo/^bar.1 syscalls/sys_enter_openat' # BAD_EVENT_NAME
22 check_error 'e:foo/bar syscalls/sys_enter_openat arg=^$foo' # BAD_ATTACH_ARG
24 check_error 'e:foo/bar syscalls/sys_enter_openat arg=^COMM' # NO_EVENT_FIELD
26 check_error 'e:foo/bar syscalls/sys_enter_openat arg=^current' # NO_EVENT_FIELD
30 check_error 'e:foo/bar syscalls/sys_enter_openat if ^' # NO_EP_FILTER
34 check_error 'e:foo/bar syscalls/sys_enter_openat arg=^this_cpu_read(file)' # NOSUP_PERCPU
/linux/tools/perf/Documentation/
H A Dcallchain-overhead-calculation.txt25 void foo(void) {
31 foo();
40 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
41 child of 'main' so 'foo' also is a child of 'main'. In other words,
42 'main' is a parent of 'foo' and 'bar', and 'bar' is a parent of 'foo'.
44 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
51 60.00% foo
53 --- foo
66 child functions (i.e. 'foo' an
[all...]
/linux/lib/
H A Dtest_debug_virtual.c16 struct foo { struct
20 static struct foo *foo; variable
32 foo = kzalloc_obj(*foo); 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()
/linux/rust/kernel/
H A Dinit.rs45 //! struct Foo {
50 //! impl Foo {
52 //! pr_info!("Setting up foo\n");
56 //! let foo = pin_init!(Foo {
63 //! }).pin_chain(|foo| {
64 //! foo.setup();
74 //! # pub struct foo;
75 //! # pub unsafe fn init_foo(_ptr: *mut foo) {}
76 //! # pub unsafe fn destroy_foo(_ptr: *mut foo) {}
[all...]
/linux/Documentation/translations/zh_CN/core-api/
H A Dxarray.rst205 void foo_init(struct foo *foo)
207 xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH);
210 int foo_store(struct foo *foo, unsigned long index, void *entry)
214 xa_lock_bh(&foo->array);
215 err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL));
217 foo->count++;
218 xa_unlock_bh(&foo->array);
223 void foo_erase(struct foo *foo, unsigned long index)
225 xa_lock(&foo->array);
226 __xa_erase(&foo->array, index);
[all …]
/linux/tools/perf/tests/shell/base_probe/
H A Dtest_invalid_options.sh66 for opt in '-a xxx -d xxx' '-a xxx -L foo' '-a xxx -V foo' '-a xxx -l' '-a xxx -F' \
67 '-d xxx -L foo' '-d xxx -V foo' '-d xxx -l' '-d xxx -F' \
68 '-L foo -V bar' '-L foo -l' '-L foo -F' '-V foo -l' '-V foo -F' '-l -F'; do
/linux/tools/testing/selftests/bpf/progs/
H A Dlinked_list.c13 struct bpf_list_head head __contains(foo, node2);
22 private(C) struct bpf_list_head ghead_array[2] __contains(foo, node2);
23 private(C) struct bpf_list_head ghead_array_one[1] __contains(foo, node2);
31 struct foo *f; in list_push_pop()
41 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
50 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
67 f = container_of(n, struct foo, node2); in list_push_pop()
82 f = container_of(n, struct foo, node2); in list_push_pop()
93 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
101 bpf_obj_drop(container_of(n, struct foo, node in list_push_pop()
[all...]
H A Dlinked_list_fail.c12 struct foo *f, *f1, *f2; \
261 f = bpf_obj_new(struct foo); in obj_drop_non_zero_off()
271 return bpf_obj_new(struct foo)->data; in new_null_ret()
277 (void)bpf_obj_new(struct foo); in obj_new_acq()
284 struct foo *f; in use_after_drop()
312 struct foo *f; in direct_read_lock()
323 struct foo *f; in direct_write_lock()
335 struct foo *f; in direct_read_head()
346 struct foo *f; in direct_write_head()
358 struct foo *f; in direct_read_node()
[all …]
/linux/rust/pin-init/src/
H A Dlib.rs79 //! struct Foo {
85 //! let foo = pin_init!(Foo {
89 //! # let _ = Box::pin_init(foo);
92 //! `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like
93 //! (or just the stack) to actually initialize a `Foo`:
102 //! # struct Foo {
108 //! # let foo = pin_init!(Foo {
[all...]
/linux/Documentation/kbuild/
H A Dkconfig-macro-language.rst16 APP := foo
17 SRC := foo.c
26 foo: foo.c
27 gcc -o foo foo.c
38 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
207 config FOO
208 int "foo"
215 config FOO
216 int "foo"
224 config FOO
[all …]
/linux/Documentation/driver-api/
H A Dpin-control.rst75 .name = "foo",
361 group "foo":
365 pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins, &gpio_range.npins);
904 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
906 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
908 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo",
910 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo",
963 .dev_name = "foo-spi.0",
966 .ctrl_dev_name = "pinctrl-foo",
970 .dev_name = "foo-i2c.0",
[all …]
/linux/scripts/kconfig/tests/conditional_dep/
H A DKconfig10 config FOO config
11 bool "FOO symbol"
18 depends on FOO if BAR
23 depends on (FOO && BAR) if (FOO || BAR)

12345678910>>...20