Home
last modified time | relevance | path

Searched refs:to (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/tools/testing/selftests/futex/functional/
A Dfutex_wait_timeout.c81 if (clock_gettime(clockid, to)) { in futex_get_abs_timeout()
86 to->tv_nsec += timeout_ns; in futex_get_abs_timeout()
88 if (to->tv_nsec >= 1000000000) { in futex_get_abs_timeout()
89 to->tv_sec++; in futex_get_abs_timeout()
90 to->tv_nsec -= 1000000000; in futex_get_abs_timeout()
100 struct timespec to; in main() local
140 to.tv_sec = 0; in main()
141 to.tv_nsec = timeout_ns; in main()
143 res = futex_wait(&f1, f1, &to, 0); in main()
155 res = futex_wait_bitset(&f1, f1, &to, 1, 0); in main()
[all …]
A Dfutex_waitv.c39 struct timespec to; in waiterfn() local
43 if (clock_gettime(CLOCK_MONOTONIC, &to)) in waiterfn()
46 to.tv_sec++; in waiterfn()
64 struct timespec to; in main() local
151 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
154 to.tv_sec++; in main()
170 if (clock_gettime(CLOCK_MONOTONIC, &to)) in main()
173 to.tv_sec++; in main()
191 to.tv_sec++; in main()
207 to.tv_sec++; in main()
[all …]
A Dfutex_wait_wouldblock.c42 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in main() local
76 res = futex_wait(&f1, f1+1, &to, FUTEX_PRIVATE_FLAG); in main()
86 if (clock_gettime(CLOCK_MONOTONIC, &to)) { in main()
91 to.tv_nsec += timeout_ns; in main()
93 if (to.tv_nsec >= 1000000000) { in main()
94 to.tv_sec++; in main()
95 to.tv_nsec -= 1000000000; in main()
99 res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC); in main()
/tools/arch/x86/include/asm/
A Dasm.h131 .long (to) - . ; \
135 # define _ASM_EXTABLE(from, to) \ argument
138 # define _ASM_EXTABLE_UA(from, to) \ argument
141 # define _ASM_EXTABLE_CPY(from, to) \ argument
142 _ASM_EXTABLE_HANDLE(from, to, ex_handler_copy)
144 # define _ASM_EXTABLE_FAULT(from, to) \ argument
163 " .long (" #to ") - .\n" \
167 # define _ASM_EXTABLE(from, to) \ argument
170 # define _ASM_EXTABLE_UA(from, to) \ argument
173 # define _ASM_EXTABLE_CPY(from, to) \ argument
[all …]
/tools/virtio/linux/
A Duaccess.h25 static void volatile_memcpy(volatile char *to, const volatile char *from, in volatile_memcpy() argument
29 *(to++) = *(from++); in volatile_memcpy()
32 static inline int copy_from_user(void *to, const void __user volatile *from, in copy_from_user() argument
35 volatile_memcpy(to, from, n); in copy_from_user()
39 static inline int copy_to_user(void __user volatile *to, const void *from, in copy_to_user() argument
42 volatile_memcpy(to, from, n); in copy_to_user()
/tools/testing/selftests/kvm/lib/x86/
A Dhandlers.S51 .macro HANDLERS has_error from to
53 .rept \to - \from + 1
73 HANDLERS has_error=0 from=0 to=7
74 HANDLERS has_error=1 from=8 to=8
75 HANDLERS has_error=0 from=9 to=9
76 HANDLERS has_error=1 from=10 to=14
77 HANDLERS has_error=0 from=15 to=16
78 HANDLERS has_error=1 from=17 to=17
79 HANDLERS has_error=0 from=18 to=255
/tools/bpf/bpftool/Documentation/
A Dbpftool-cgroup.rst53 List all programs attached to the cgroup *CGROUP*.
81 gets run in addition to the program in this cgroup.
83 Only one program is allowed to be attached to a cgroup with no attach flags
87 Multiple programs are allowed to be attached to a cgroup with **multi**.
100 - **bind4** call to bind(2) for an inet4 socket (since 4.17)
101 - **bind6** call to bind(2) for an inet6 socket (since 4.17)
104 - **connect4** call to connect(2) for an inet4 socket (since 4.17)
105 - **connect6** call to connect(2) for an inet6 socket (since 4.17)
106 - **connect_unix** call to connect(2) for a unix socket (since 6.7)
114 - **getsockopt** call to getsockopt (since 5.3)
[all …]
/tools/usb/usbip/
A DINSTALL8 unlimited permission to copy, distribute and modify it.
16 instructions specific to this package.
33 If you need to do unusual things to compile the package, please try
34 to figure out how `configure' could check whether to do them, and mail
45 The simplest way to compile this package is:
53 2. Type `make' to compile the package.
129 Some packages pay attention to `--enable-FEATURE' options to
139 `--x-libraries=DIR' to specify their locations.
160 need to know the machine type.
174 If you want to set default values for `configure' scripts to share, you
[all …]
A DCOPYING13 License is intended to guarantee your freedom to share and change free
16 Foundation's software and to any other program whose authors commit to
29 anyone to deny you these rights or to ask you to surrender the rights.
83 notices that refer to this License and to the absence of any warranty;
100 part thereof, to be licensed as a whole at no charge to all third
125 your rights to work written entirely by you; rather, the intent is to
215 It is not the purpose of this section to induce you to infringe any
226 This section is intended to make thoroughly clear what is believed to
282 How to Apply These Terms to Your New Programs
285 possible use to the public, the best way to achieve this is to make it
[all …]
A DREADME8 USB/IP protocol allows to pass USB device from server to client over the
21 bound to a physical USB device to make it exportable.
96 - Assign your new gadget to USB/IP UDC
128 Physically attach your USB devices to this host.
130 trois:# insmod path/to/usbip-core.ko
131 trois:# insmod path/to/usbip-host.ko
135 attached to this host.
192 deux:# insmod path/to/usbip-core.ko
193 deux:# insmod path/to/vhci-hcd.ko
226 Show the devices attached to this client:
[all …]
/tools/perf/Documentation/
A Dperf-ftrace.txt21 write it to stdout.
29 The following options apply to perf ftrace.
53 Default is to trace on all online CPUs.
70 List available functions to trace. It accepts a pattern to
98 passed to 'set_ftrace_notrace' in tracefs.
101 List of options allowed to set:
111 than once to specify multiple functions. It will be passed to
124 List of options allowed to set:
181 to 'set_ftrace_filter' in tracefs.
202 passed to 'set_graph_notrace' in tracefs.
[all …]
A Dperf-data.txt21 It's possible to set data-convert debug variable to get debug messages from conversion,
27 --to-ctf::
30 --to-json::
31 Triggers JSON conversion. Specify the JSON filename to output.
34 Convert time to wall clock time.
48 Convert all events, including non-sample events (comm, fork, ...), to output.
A Dandroid.txt1 How to compile perf for Android
9 1. You need to download and install the Android Native Development Kit (NDK).
10 Set the NDK variable to point to the path where you installed the NDK:
11 export NDK=/path/to/android-ndk
32 2. Build your own NDK sysroot to contain latest bionic changes and set the
50 You need to run make with the NDK toolchain and sysroot defined above:
58 You need to connect to your Android device/emulator using adb.
62 If you also want to use perf-archive you need busybox tools for Android.
70 Some perf features need environment variables to run properly.
71 You need to set these before running perf on the target:
[all …]
/tools/memory-model/Documentation/
A DREADME3 knowledge to what they need to know. Unfortunately, the expected
5 to expert both in kernel hacking and in understanding LKMM.
14 o You are new to Linux-kernel concurrency: simple.txt
20 Here, "low level" means atomic operations to single variables.
23 that you need, and just want to get started with LKMM litmus
39 o You would like to mark concurrent normal accesses to shared
41 documented, especially when you are responding to complaints
48 of LKMM, and would like to learn about LKMM's requirements,
65 Guidelines for marking intentionally concurrent accesses to
69 Quick-reference guide to the Linux-kernel memory model.
[all …]
A Dcontrol-dependencies.txt5 do not support them. One purpose of this document is therefore to
7 control dependencies also pose other challenges, which leads to the
8 second purpose of this document, namely to help you to avoid breaking
59 It is tempting to try use control dependencies to enforce ordering on
133 (q % MAX) must be equal to zero, regardless of the value of "q".
145 to relying on control dependencies to produce this ordering, you should
149 BUILD_BUG_ON(MAX <= 1); /* Order load from a with store to b. */
180 within its rights to discard the loaded value.
214 to code following that "if" statement.
240 can help to preserve the needed conditional.
[all …]
A Dglossary.txt2 glossaries, it is not intended to be read front to back (except perhaps
3 as a way of confirming a diagnosis of OCD), but rather to be searched
9 dependency" extends from that load extending to the later access.
20 address dependency extends from that rcu_dereference() to that
44 there is said to be a coherence link from the second CPU to
49 external" (coe) link is used when it is necessary to exclude
56 a "control dependency" extends from that load to that store.
84 are all equal to zero is forbidden by LKMM.
90 extends from that load to that later store. For example:
106 too late to affect the value returned by another CPU's
[all …]
A Dordering.txt133 all architectures is to add a call to smp_mb():
170 to another.
200 you will need to make sure that none of the compilers used to build
236 to handle this is to use READ_ONCE() for the load of "dontstop".
300 be assigned to instead of a pointer to that pointer, (2) It
394 to that subsequent memory access.
399 a call to smp_store_release(). Calls to rcu_dereference() and
430 the write to "b".
515 but to all the compilers that might be used to build it. Such compilers
534 to a given variable are reads.
[all …]
A Dexplanation.txt207 P0 stores 1 to buf before storing 1 to flag, since it executes
297 Write events correspond to stores to shared memory, such as
857 on C to propagate to C' before any po-later stores do.
902 require W to propagate to C before W' propagates to C'.
1186 smp_wmb() forces P0's store to x to propagate to P1 before the store
1360 to buf will propagate to P1 before the store to flag does, and the
1361 store to flag propagates to P1 before P1 reads flag.
1417 store to y does (the first cumul-fence), the store to y propagates to P2
1421 store to z has propagated to P0 (an rfe link).
1458 propagate to every CPU and to RAM before F executes.
[all …]
/tools/perf/util/
A Dcopyfile.c14 static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi) in slow_copyfile() argument
28 to_fp = fopen(to, "w"); in slow_copyfile()
73 static int copyfile_mode_ns(const char *from, const char *to, mode_t mode, in copyfile_mode_ns() argument
90 if (asprintf(&tmp, "%s.XXXXXXx", to) < 0) { in copyfile_mode_ns()
126 err = link(tmp, to); in copyfile_mode_ns()
133 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi) in copyfile_ns() argument
135 return copyfile_mode_ns(from, to, 0755, nsi); in copyfile_ns()
138 int copyfile_mode(const char *from, const char *to, mode_t mode) in copyfile_mode() argument
140 return copyfile_mode_ns(from, to, mode, NULL); in copyfile_mode()
143 int copyfile(const char *from, const char *to) in copyfile() argument
[all …]
/tools/testing/selftests/arm64/signal/
A DREADME8 enforces a standard sequence of operations needed to perform a single
17 to run each test unit in its own standalone process, so as to start each
21 tdescr overriding all the defaults we wish to change (as of now providing a
24 - Signals' test-cases hereafter defined belong currently to two
32 is placed on the stack and a sigreturn syscall is called to simulate a
38 kind of tests it is extremely easy in fact to end-up injecting other
39 unrelated SEGV bugs in the testcases, it becomes extremely tricky to
41 to address and they are not instead falling apart due to unplanned bugs
43 In order to alleviate the misery of the life of such test-developer, a few
52 default it takes care to verify that the test-execution had at least
[all …]
/tools/power/cpupower/bindings/python/
A DREADME1 This folder contains the necessary files to build the Python bindings for
11 to libcpupower.so exists in your library path from your distribution's
38 Return to the directory this README is in to run:
57 You need to add the Python bindings directory to your $PYTHONPATH.
63 This allows you to set a specific repo of the bindings to use.
69 Python uses a system specific site-packages folder to look up modules to import
70 by default. You do not need to install cpupower to use the SWIG bindings.
72 You can install and uninstall the bindings to the site-packages with:
/tools/testing/ktest/examples/
A DREADME1 This directory contains example configs to use ktest for various tasks.
2 The configs still need to be customized for your environment, but it
3 is broken up by task which makes it easier to understand how to set up
7 and commented to show more generic use cases that are more helpful for
12 it easy to compile test different archs. You can download the arch
17 used to perform real testing.
19 kvm.conf - A example of a config that is used to test a virtual guest running
22 snowball.conf - An example config that was used to demo ktest.pl against
27 to reuse configs for various machines or set ups. The files here
/tools/testing/selftests/tc-testing/
A DTODO.txt6 - Add support for multiple versions of tc to run successively
9 need to better handle problems in pre- and post-suite.
13 - Allow tdc to write its results to file.
17 will attempt to run a function at every hook point. Could be
18 changed so that plugin __init__ methods will register functions to
21 trying to run a function that will do nothing.
28 and a way to configure a test suite,
29 to automate running multiple "test suites" with different requirements
/tools/perf/scripts/perl/Perf-Trace-Util/
A DREADME9 that scripts may want to use. Context.pm contains the Perl->C
10 interface that allows scripts to access data in the embedding perf
11 executable; scripts wishing to do that should 'use Context.pm'.
14 want to add new Perl functions that end up accessing C data in the
17 that you want to access - it's passed as the second parameter,
18 $context, to all handler functions.
22 perl Makefile.PL # to create a Makefile for the next step
23 make # to create Context.c
25 edit Context.c to add const to the char* file = __FILE__ line in
26 XS(boot_Perf__Trace__Context) to silence a warning/error.
[all …]
/tools/testing/selftests/arm64/fp/
A Dassembler.h8 .macro __for from:req, to:req
9 .if (\from) == (\to)
12 __for \from, %(\from) + ((\to) - (\from)) / 2
13 __for %(\from) + ((\to) - (\from)) / 2 + 1, \to
17 .macro _for var:req, from:req, to:req, insn:vararg
25 __for \from, \to

Completed in 31 milliseconds

12345678910>>...17