Home
last modified time | relevance | path

Searched +full:foo +full:- +full:bar (Results 1 – 25 of 180) sorted by relevance

12345678

/Linux-v6.6/samples/trace_events/
Dtrace-events-sample.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * In this case, it would look for sample-trace.h
14 * This file is called trace-events-sample.h but we want the system
15 * to be called "sample-trace". Therefore we must define the name of this
18 * #define TRACE_INCLUDE_FILE trace-events-sample
26 #define TRACE_SYSTEM sample-trace
29 * TRACE_SYSTEM is expected to be a C valid variable (alpha-numeric
36 * But the above is only needed if TRACE_SYSTEM is not alpha-numeric
38 * TRACE_SYSTEM. As TRACE_SYSTEM_VAR must be alpha-numeric, if
40 * only alpha-numeric and underscores.
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_override.c1 // SPDX-License-Identifier: GPL-2.0
7 #define FOO "/foo" macro
8 #define BAR "/foo/bar/" macro
9 #define PING_CMD "ping -q -c1 -w1 127.0.0.1 > /dev/null"
28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in serial_test_cgroup_attach_override() local
33 "verifier output:\n%s\n-------\n", bpf_log_buf)) in serial_test_cgroup_attach_override()
38 "verifier output:\n%s\n-------\n", bpf_log_buf)) in serial_test_cgroup_attach_override()
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()
[all …]
Dlinked_list.c1 // SPDX-License-Identifier: GPL-2.0
87 "operation on bpf_list_head expects arg#1 bpf_list_node at offset=48 in struct foo, "
88 "but arg is at offset=0 in struct bar" },
91 { "incorrect_node_off2", "arg#1 offset=0, but expected bpf_list_node at offset=48 in struct foo" },
120 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in test_linked_list_fail_prog()
174 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.map_list_push_pop), &opts); in test_linked_list_success()
178 clear_fields(skel->maps.array_map); in test_linked_list_success()
180 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.inner_map_list_push_pop), &opts); in test_linked_list_success()
184 clear_fields(skel->maps.inner_map); in test_linked_list_success()
186 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.global_list_push_pop), &opts); in test_linked_list_success()
[all …]
/Linux-v6.6/tools/testing/selftests/net/
Dunicast_extensions.sh2 # SPDX-License-Identifier: GPL-2.0
7 # Self-tests for IPv4 address extensions: the kernel's ability to accept
31 # Kselftest framework requirement - SKIP code is 4.
49 if [ $1 -eq 0 ]; then
50 printf "TEST: %-60s [ OK ]\n" "${2}"
52 printf "TEST: %-60s [FAIL]\n" "${2}"
61 # foo --- bar
64 # Caller must set up foo-ns and bar-ns namespaces
65 # containing linked veth devices foo and bar,
68 ip -n foo-ns address add $1/$3 dev foo || return 1
[all …]
/Linux-v6.6/Documentation/translations/zh_CN/admin-guide/
Dbootconfig.rst1 .. SPDX-License-Identifier: GPL-2.0
3 .. include:: ../disclaimer-zh_CN.rst
5 :Original: Documentation/admin-guide/bootconfig.rst
32 关键字只允许包含字母、数字、连字符( ``-`` )和下划线( ``_`` )。值可包含
42 --------
46 foo.bar.baz = value1
47 foo.bar.qux.quux = value2
51 foo.bar {
58 foo.bar { baz = value1; qux.quux = value2 }
64 --------------
[all …]
/Linux-v6.6/tools/perf/Documentation/
Dcallchain-overhead-calculation.txt2 --------------------
5 adding all period values of the entry - usually a function (symbol).
23 -----------------------
24 void foo(void) {
28 void bar(void) {
30 foo();
34 bar()
37 -----------------------
39 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
40 child of 'main' so 'foo' also is a child of 'main'. In other words,
[all …]
/Linux-v6.6/tools/testing/selftests/ftrace/test.d/dynevent/
Deprobes_syntax_errors.tc2 # SPDX-License-Identifier: GPL-2.0
4 # requires: dynamic_events events/syscalls/sys_enter_openat "<attached-group>.<attached-event> [<ar…
6 check_error() { # command-with-error-pos-by-^
13 check_error 'e syscalls/sys_enter_openat ^foo' # BAD_ATTACH_ARG
14 check_error 'e:^/bar syscalls/sys_enter_openat' # NO_GROUP_NAME
15 check_error 'e:^12345678901234567890123456789012345678901234567890123456789012345/bar syscalls/sys_…
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=^dfd' # BAD_FETCH_ARG
[all …]
Dfprobe_syntax_errors.tc2 # SPDX-License-Identifier: GPL-2.0
4 # requires: dynamic_events "f[:[<group>/][<event>]] <func-name>[%return] [<args>]":README
6 check_error() { # command-with-error-pos-by-^
10 case `uname -m` in
25 check_error 'f:^/bar vfs_read' # NO_GROUP_NAME
26 check_error 'f:^12345678901234567890123456789012345678901234567890123456789012345/bar vfs_read' # G…
28 check_error 'f:^foo.1/bar vfs_read' # BAD_GROUP_NAME
30 check_error 'f:foo/^12345678901234567890123456789012345678901234567890123456789012345 vfs_read' # E…
31 check_error 'f:foo/^bar.1 vfs_read' # BAD_EVENT_NAME
44 grep -q "imm-value" README && \
[all …]
/Linux-v6.6/Documentation/admin-guide/
Dbootconfig.rst1 .. SPDX-License-Identifier: GPL-2.0
15 additional key-value data when booting the kernel in an efficient way.
16 This allows administrators to pass a structured-Key config file.
21 The boot config syntax is a simple structured key-value. Each key consists
22 of dot-connected-words, and key and value are connected by ``=``. The value
23 has to be terminated by semi-colon (``;``) or newline (``\n``).
30 Each key word must contain only alphabets, numbers, dash (``-``) or underscore
32 for delimiters such as semi-colon (``;``), new-line (``\n``), comma (``,``),
35 If you want to use those delimiters in a value, you can use either double-
36 quotes (``"VALUE"``) or single-quotes (``'VALUE'``) to quote it. Note that
[all …]
/Linux-v6.6/Documentation/devicetree/
Doverlay-notes.rst1 .. SPDX-License-Identifier: GPL-2.0
7 This document describes the implementation of the in-kernel
9 companion document to Documentation/devicetree/dynamic-resolution-notes.rst[1]
12 -----------------
21 Lets take an example where we have a foo board with the following base tree::
23 ---- foo.dts ---------------------------------------------------------------
24 /* FOO platform */
25 /dts-v1/;
27 compatible = "corp,foo";
39 ---- foo.dts ---------------------------------------------------------------
[all …]
/Linux-v6.6/samples/kobject/
Dkset-example.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2004-2007 Greg Kroah-Hartman <greg@kroah.com>
17 * /sys/kernel/kset-example
18 * Then tree kobjects are created and assigned to this kset, "foo", "baz",
19 * and "bar". In those kobjects, attributes of the same name are also
31 int foo; member
33 int bar; 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
[all …]
Dkobject-example.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2004-2007 Greg Kroah-Hartman <greg@kroah.com>
16 * /sys/kernel/kobject-example In that directory, 3 files are created:
17 * "foo", "baz", and "bar". If an integer is written to these files, it can be
21 static int foo; variable
23 static int bar; variable
26 * The "foo" file where a static variable is read from and written to.
31 return sysfs_emit(buf, "%d\n", foo); in foo_show()
39 ret = kstrtoint(buf, 10, &foo); in foo_store()
46 /* Sysfs attributes cannot be world-writable. */
[all …]
/Linux-v6.6/Documentation/translations/zh_CN/devicetree/
Doverlay-notes.rst1 .. SPDX-License-Identifier: GPL-2.0
2 .. include:: ../disclaimer-zh_CN.rst
4 :Original: Documentation/devicetree/overlay-notes.rst
17 Documentation/devicetree/dynamic-resolution-notes.rst[1]的配套文档。
20 ------------
28 ---- foo.dts ---------------------------------------------------------------
30 /dts-v1/;
32 compatible = "corp,foo";
44 ---- foo.dts ---------------------------------------------------------------
49 ---- bar.dts - 按标签覆盖目标位置 ----------------------------
[all …]
/Linux-v6.6/Documentation/doc-guide/
Dkernel-doc.rst1 .. title:: Kernel-doc comments
4 Writing kernel-doc comments
8 comments in the kernel-doc format to describe the functions, types
9 and design of the code. It is easier to keep documentation up-to-date
12 .. note:: The kernel-doc format is deceptively similar to javadoc,
13 gtk-doc or Doxygen, yet distinctively different, for historical
14 reasons. The kernel source contains tens of thousands of kernel-doc
17 .. note:: kernel-doc does not cover Rust code: please see
18 Documentation/rust/general-information.rst instead.
20 The kernel-doc structure is extracted from the comments, and proper
[all …]
/Linux-v6.6/tools/perf/tests/
Dexpr.c1 // SPDX-License-Identifier: GPL-2.0
27 /* Union {foo, bar} against {}. */ in test_ids_union()
31 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("foo")), 0); in test_ids_union()
32 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids1, strdup("bar")), 0); in test_ids_union()
37 /* Union {foo, bar} against {foo}. */ in test_ids_union()
40 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("foo")), 0); in test_ids_union()
45 /* Union {foo, bar} against {bar,baz}. */ in test_ids_union()
48 TEST_ASSERT_EQUAL("ids__insert", ids__insert(ids2, strdup("bar")), 0); in test_ids_union()
86 expr__add_id_val(ctx, strdup("FOO"), 1); in test__expr()
87 expr__add_id_val(ctx, strdup("BAR"), 2); in test__expr()
[all …]
/Linux-v6.6/Documentation/translations/it_IT/doc-guide/
Dkernel-doc.rst1 .. include:: ../disclaimer-ita.rst
4 :ref:`Documentation/doc-guide/index.rst <doc_guide>`
6 .. title:: Commenti in kernel-doc
11 Scrivere i commenti in kernel-doc
15 strutturanti secondo il formato kernel-doc. Essi possono descrivere funzioni,
18 .. note:: Il formato kernel-doc può sembrare simile a gtk-doc o Doxygen ma
20 contengono decine di migliaia di commenti kernel-doc. Siete pregati
23 La struttura kernel-doc è estratta a partire dai commenti; da questi viene
30 .. _`dominio Sphinx per il C`: http://www.sphinx-doc.org/en/stable/domains.html
34 kernel-doc. Quando l'intenzione è di utilizzarle nei moduli, anche le funzioni
[all …]
/Linux-v6.6/tools/testing/ktest/examples/bootconfigs/
Dverify-boottrace.sh18 content=`cat $file | sed -ne "/^$val/p"`
19 if [ -z "$content" ]; then
30 if ! grep -q "$val" $file ; then
41 content=`cat $file | sed -ne "/^[0 ]*$val/p"`
42 if [ -z "$content" ]; then
61 …all_finish/trigger" 'hist:keys=func:vals=hitcount:lat=common_timestamp.usecs-\$ts0:sort=hitcount:s…
64 compare_file "instances/foo/current_tracer" "function"
65 file_contains "instances/foo/set_ftrace_filter" "^user"
66 compare_file "instances/foo/buffer_size_kb" "512"
67 compare_mask "instances/foo/tracing_cpumask" "1"
[all …]
/Linux-v6.6/include/kunit/
Dassert.h1 /* SPDX-License-Identifier: GPL-2.0 */
19 * enum kunit_assert_type - Type of expectation/assertion.
32 * struct kunit_loc - Identifies the source location of a line of code.
44 * struct kunit_assert - Data for printing a failed assertion or expectation.
60 * struct kunit_fail_assert - Represents a plain fail expectation/assertion.
74 * struct kunit_unary_assert - Represents a KUNIT_{EXPECT|ASSERT}_{TRUE|FALSE}
94 * struct kunit_ptr_not_err_assert - An expectation/assertion that a pointer is
95 * not NULL and not a -errno.
101 * not contain a -errno. (See IS_ERR_OR_NULL().)
114 * struct kunit_binary_assert_text - holds strings for &struct
[all …]
/Linux-v6.6/Documentation/kbuild/
Dkconfig-language.rst6 ------------
11 +- Code maturity level options
12 | +- Prompt for development and/or incomplete code/drivers
13 +- General setup
14 | +- Networking support
15 | +- System V IPC
16 | +- BSD Process Accounting
17 | +- Sysctl support
18 +- Loadable module support
19 | +- Enable loadable module support
[all …]
/Linux-v6.6/Documentation/translations/zh_CN/doc-guide/
Dkernel-doc.rst1 .. include:: ../disclaimer-zh_CN.rst
3 :Original: Documentation/doc-guide/kernel-doc.rst
7 编写kernel-doc注释
10 Linux内核源文件可以包含kernel-doc格式的结构化文档注释,用以描述代码的函数、
13 .. note:: 内核文档格式与javadoc、gtk-doc或Doxygen看似很相似,但由于历史原因,
14 实际有着明显的不同。内核源包含成千上万个kernel-doc注释。请坚持遵循
17 .. note:: kernel-doc无法包含Rust代码:请参考 Documentation/rust/general-information.rst 。
19 从注释中提取kernel-doc结构,并从中生成适当的 `Sphinx C 域`_ 函数和带有锚点的
20 类型描述。这些注释将被过滤以生成特殊kernel-doc高亮和交叉引用。详见下文。
22 .. _Sphinx C 域: http://www.sphinx-doc.org/en/stable/domains.html
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_global_func9.c1 // SPDX-License-Identifier: GPL-2.0-only
30 __noinline int foo(const struct S *s) in foo() function
33 return bpf_get_prandom_u32() < s->x; in foo()
38 __noinline int bar(int *x) in bar() function
84 const struct S s = {.x = skb->len }; in global_func9()
86 result |= foo(&s); in global_func9()
93 result |= foo(s); in global_func9()
97 const struct C c = {.x = skb->len, .y = skb->family }; in global_func9()
99 result |= foo((const struct S *)&c); in global_func9()
103 result |= foo(NULL); in global_func9()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/clock/
Dmaxim,max77686.txt4 multi-function device. More information can be found in MFD DT binding
12 dt-bindings/clock/maxim,max77686.h.
17 dt-bindings/clock/maxim,max77802.h.
21 dt-bindings/clock/maxim,max77620.h.
27 - #clock-cells: from common clock binding; shall be set to 1.
30 - clock-output-names: From common clock binding.
34 - 0: 32khz_ap clock (max77686, max77802), 32khz_out0 (max77620)
35 - 1: 32khz_cp clock (max77686, max77802),
36 - 2: 32khz_pmic clock (max77686).
38 Clocks are defined as preprocessor macros in above dt-binding header for
[all …]
/Linux-v6.6/rust/kernel/
Dinit.rs1 // SPDX-License-Identifier: Apache-2.0 OR MIT
3 //! API to safely and fallibly initialize pinned `struct`s using in-place constructors.
5 //! It also allows in-place initialization of big `struct`s that would otherwise produce a stack
8 //! Most `struct`s from the [`sync`] module need to be pinned, because they contain self-referential
13 //! To initialize a `struct` with an in-place constructor you will need two things:
14 //! - an in-place constructor,
15 //! - a memory location that can hold your `struct` (this can be the [stack], an [`Arc<T>`],
18 //! To get an in-place constructor there are generally three options:
19 //! - directly creating an in-place constructor using the [`pin_init!`] macro,
20 //! - a custom function/macro returning an in-place constructor provided by someone else,
[all …]
/Linux-v6.6/Documentation/process/
Dmaintainer-tip.rst1 .. SPDX-License-Identifier: GPL-2.0
7 ---------------------
11 aggregation tree for several sub-maintainer trees. The tip tree gitweb URL
16 - **x86 architecture**
22 x86-specific KVM and XEN patches.
30 mail alias which distributes mails to the x86 top-level maintainer
32 ``linux-kernel@vger.kernel.org``, otherwise your mail ends up only in
35 - **Scheduler**
37 Scheduler development takes place in the -tip tree, in the
38 sched/core branch - with occasional sub-topic trees for
[all …]
/Linux-v6.6/Documentation/dev-tools/
Dcheckpatch.rst1 .. SPDX-License-Identifier: GPL-2.0-only
27 - -q, --quiet
31 - -v, --verbose
35 - --no-tree
39 - --no-signoff
41 Disable the 'Signed-off-by' line check. The sign-off is a simple line at
43 or otherwise have the right to pass it on as an open-source patch.
47 Signed-off-by: Random J Developer <random@developer.example.org>
49 Setting this flag effectively stops a message for a missing signed-off-by
52 - --patch
[all …]

12345678