| /linux/tools/perf/tests/shell/ | 
| H A D | trace_summary.sh | 3 # SPDX-License-Identifier: GPL-2.011 [ "$(id -u)" = 0 ] || exit 2
 18     search="^\s*(open|read|close).*[0-9]+%$"
 20     echo "testing: perf trace ${args} -- ${workload}"
 21     perf trace ${args} -- ${workload} >${OUTPUT} 2>&1
 22     if [ $? -ne 0 ]; then
 25         rm -f ${OUTPUT}
 29     count=$(grep -E -c -m 3 "${search}" ${OUTPUT})
 33 	rm -f ${OUTPUT}
 39 test_perf_trace "-s"
 [all …]
 
 | 
| H A D | stat+json_output.sh | 3 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)7 set -e
 19   rm -f "${stat_output}"
 21   trap - EXIT TERM INT
 33 	 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
 38 	echo -n "Checking json output: no args "
 39 	perf stat -j -o "${stat_output}" true
 40 	$PYTHON $pythonchecker --no-args --file "${stat_output}"
 46 	echo -n "Checking json output: system wide "
 52 	perf stat -j -a -o "${stat_output}" true
 [all …]
 
 | 
| H A D | record_lbr.sh | 3 # SPDX-License-Identifier: GPL-2.05 set -e
 8   [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
 11 if [ ! -f /sys/bus/event_source/devices/cpu/caps/branches ] &&
 12    [ ! -f /sys/bus/event_source/devices/cpu_core/caps/branches ]
 22   rm -rf "${perfdata}"
 23   rm -rf "${perfdata}".old
 24   rm -rf "${perfdata}".txt
 26   trap - EXIT TERM INT
 41   if ! perf record -e cycles --call-graph lbr -o "${perfdata}" perf test -w thloop
 [all …]
 
 | 
| H A D | amd-ibs-swfilt.sh | 5   [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]11 if [ ! -d /sys/bus/event_source/devices/ibs_op ]; then
 17 if [ ! -f /sys/bus/event_source/devices/ibs_op/format/swfilt ]; then
 26 perf record -B -e ibs_op//u -o /dev/null true 2> /dev/null
 27 if [ $? -eq 0 ]; then
 33 perf record -B -e ibs_op/swfilt/u -o /dev/null true
 34 if [ $? -ne 0 ]; then
 42     perf record -B -e ibs_op/swfilt=1/k -o /dev/null true
 43     if [ $? -ne 0 ]; then
 53 perf record -B -e ibs_fetch/swfilt/u -o /dev/null true
 [all …]
 
 | 
| H A D | test_arm_coresight.sh | 9 # SPDX-License-Identifier: GPL-2.015 	perf list pmu | grep -q 'cs_etm//' && return 0
 28 	rm -f ${perfdata}
 29 	rm -f ${file}
 30 	rm -f "${perfdata}.old"
 31 	trap - EXIT TERM INT
 39 	rm -f $file
 40 	perf record -o ${perfdata} -e cs_etm/@$1/u --per-thread \
 41 		-- taskset -c $2 touch $file > /dev/null 2>&1
 48 …512          1         branches:u:      ffffb220824c strcmp+0xc (/lib/aarch64-linux-gnu/ld-2.27.so)
 [all …]
 
 | 
| H A D | record.sh | 3 # SPDX-License-Identifier: GPL-2.05 set -e
 23 testprog="perf test -w thloop"
 29 default_fd_limit=$(ulimit -Sn)
 30 # With option --threads=cpu the number of open file descriptors should be
 39   rm -f "${perfdata}"
 40   rm -f "${perfdata}".old
 41   rm -f "${script_output}"
 43   trap - EXIT TERM INT
 54   echo "Basic --per-thread mode test"
 [all …]
 
 | 
| H A D | stat_bpf_counters_cgrp.sh | 2 # perf stat --bpf-counters --for-each-cgroup test3 # SPDX-License-Identifier: GPL-2.0
 5 set -e
 8 if [ "$1" = "-v" ]; then
 12 # skip if --bpf-counters --for-each-cgroup is not supported
 15 	if ! perf stat -a --bpf-counters --for-each-cgroup / true > /dev/null 2>&1; then
 17 			echo "Skipping: --bpf-counters --for-each-cgroup not supported"
 18 			perf --no-pager stat -a --bpf-counters --for-each-cgroup / true || true
 28 	if [ -d /sys/fs/cgroup/system.slice ] && [ -d /sys/fs/cgroup/user.slice ]; then
 29 		test_cgroups="system.slice,user.slice"
 [all …]
 
 | 
| H A D | test_arm_spe.sh | 8 # SPDX-License-Identifier: GPL-2.012 	perf list pmu | grep -E -q 'arm_spe_[0-9]+//' && return 0
 25 	rm -f ${perfdata}
 26 	rm -f ${perfdata}.old
 46 	# from arm-spe.c/arm_spe_synth_events()
 47 …events="(ld1-miss|ld1-access|llc-miss|lld-access|tlb-miss|tlb-access|branch-miss|remote-access|mem…
 50 …#	dd  3048 [002]          1    l1d-access:      ffffaa64999c __GI___libc_write+0x3c (/lib/aarch64-…
 51 …#	dd  3048 [002]          1    tlb-access:      ffffaa64999c __GI___libc_write+0x3c (/lib/aarch64-…
 52 …    1        memory:      ffffaa64999c __GI___libc_write+0x3c (/lib/aarch64-linux-gnu/libc-2.27.so)
 53 	perf script -F,-time -i ${perfdata} 2>&1 | \
 [all …]
 
 | 
| /linux/tools/perf/Documentation/ | 
| H A D | perf-stat.txt | 1 perf-stat(1)5 ----
 6 perf-stat - Run a command and gather performance counter statistics
 9 --------
 11 'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command>
 12 'perf stat' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>]
 13 'perf stat' [-e <EVENT> | --event=EVENT] [-a] record [-o file] \-- <command> [<options>]
 14 'perf stat' report [-i file]
 17 -----------
 23 -------
 [all …]
 
 | 
| H A D | perf-amd-ibs.txt | 1 perf-amd-ibs(1)5 ----
 6 perf-amd-ibs - Support for AMD Instruction-Based Sampling (IBS) with perf tool
 9 --------
 11 'perf record' -e ibs_op//
 12 'perf record' -e ibs_fetch//
 15 -----------
 17 Instruction-Based Sampling (IBS) provides precise Instruction Pointer (IP)
 20 execution (micro-op execution to be precise) with details like d-cache
 21 hit/miss, d-TLB hit/miss, cache miss latency, load/store data source, branch
 [all …]
 
 | 
| /linux/Documentation/admin-guide/pm/ | 
| H A D | suspend-flows.rst | 1 .. SPDX-License-Identifier: GPL-2.05 System Suspend Code Flows
 12 At least one global system-wide transition needs to be carried out for the
 13 system to get from the working state into one of the supported
 14 :doc:`sleep states <sleep-states>`.  Hibernation requires more than one
 16 referred to as *system-wide suspend* (or simply *system suspend*) states, need
 19 For those sleep states, the transition from the working state of the system into
 20 the target sleep state is referred to as *system suspend* too (in the majority
 21 of cases, whether this means a transition or a sleep state of the system should
 23 working state is referred to as *system resume*.
 [all …]
 
 | 
| H A D | strategies.rst | 1 .. SPDX-License-Identifier: GPL-2.013 The Linux kernel supports two major high-level power management strategies.
 15 One of them is based on using global low-power states of the whole system in
 16 which user space code cannot be executed and the overall system activity is
 17 significantly reduced, referred to as :doc:`sleep states <sleep-states>`.  The
 18 kernel puts the system into one of these states when requested by user space
 19 and the system stays in it until a special signal is received from one of
 21 user space code can run.  Because sleep states are global and the whole system
 23 :doc:`system-wide power management <system-wide>`.
 25 The other strategy, referred to as the :doc:`working-state power management
 [all …]
 
 | 
| /linux/Documentation/scsi/ | 
| H A D | advansys.rst | 1 .. SPDX-License-Identifier: GPL-2.07 AdvanSys (Advanced System Products, Inc.) manufactures the following
 8 RISC-based, Bus-Mastering, Fast (10 Mhz) and Ultra (20 Mhz) Narrow
 9 (8-bit transfer) SCSI Host Adapters for the ISA, EISA, VL, and PCI
 10 buses and RISC-based, Bus-Mastering, Ultra (20 Mhz) Wide (16-bit
 21   - ABP-480 - Bus-Master CardBus (16 CDB)
 24    - ABP510/5150 - Bus-Master ISA (240 CDB)
 25    - ABP5140 - Bus-Master ISA PnP (16 CDB)
 26    - ABP5142 - Bus-Master ISA PnP with floppy (16 CDB)
 27    - ABP902/3902 - Bus-Master PCI (16 CDB)
 [all …]
 
 | 
| H A D | FlashPoint.rst | 1 .. SPDX-License-Identifier: GPL-2.013   	  MYLEX INTRODUCES LINUX OPERATING SYSTEM SUPPORT FOR ITS
 17   FREMONT, CA, -- October 8, 1996 -- Mylex Corporation has expanded Linux
 18   operating system support to its BusLogic brand of FlashPoint Ultra SCSI
 20   MultiMaster line, currently support the Linux operating system.  Linux
 30 The Linux Operating System
 33 Linux is a freely-distributed implementation of UNIX for Intel x86, Sun
 35 machines.  It supports a wide range of software, including the X Window
 36 System, Emacs, and TCP/IP networking.  Further information is available at
 43 and file server environments, are available in narrow, wide, dual channel,
 [all …]
 
 | 
| H A D | BusLogic.rst | 1 .. SPDX-License-Identifier: GPL-2.021 	 Copyright 1995-1998 by Leonard N. Zubkoff <lnz@dandelion.com>
 57 BT-948/958/958D, will always be available from my Linux Home Page at URL
 62 driver and SCSI subsystem at startup, along with any subsequent system messages
 63 relevant to SCSI operations, and a detailed description of your system's
 69 the BT-948 PCI Ultra SCSI Host Adapter, and then again for the BT-958 PCI Wide
 90 94555, USA and can be reached at 510/796-6100 or on the World Wide Web at
 92 mail at techsup@mylex.com, by Voice at 510/608-2400, or by FAX at 510/745-7715.
 101 -----------------------------------
 103   During system initialization, the driver reports extensively on the host
 [all …]
 
 | 
| /linux/tools/perf/tests/shell/lib/ | 
| H A D | stat_output.sh | 2 # SPDX-License-Identifier: GPL-2.07 	 [ "$(id -u)" != 0 ] && [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt $1 ]
 13         echo -n "Checking $1 output: no args "
 15         commachecker --no-args
 21 	echo -n "Checking $1 output: system wide "
 27 	perf stat -a $2 true
 28 	commachecker --system-wide
 34 	echo -n "Checking $1 output: system wide no aggregation "
 40 	perf stat -A -a --no-merge $2 true
 41 	commachecker --system-wide-no-aggr
 [all …]
 
 | 
| /linux/Documentation/arch/riscv/ | 
| H A D | vector.rst | 1 .. SPDX-License-Identifier: GPL-2.04 Vector Extension Support for RISC-V Linux
 8 order to support the use of the RISC-V Vector Extension.
 11 ---------------------
 19 are not portable to non-Linux, nor non-RISC-V environments, so it is discourage
 27     argument consists of two 2-bit enablement statuses and a bit for inheritance
 30     Enablement status is a tri-state value each occupying 2-bit of space in
 33     * :c:macro:`PR_RISCV_V_VSTATE_CTRL_DEFAULT`: Use the system-wide default
 34       enablement status on execve(). The system-wide default setting can be
 43     arg: The control argument is a 5-bit value consisting of 3 parts, and
 [all …]
 
 | 
| /linux/tools/perf/arch/arm64/util/ | 
| H A D | tsc.c | 1 // SPDX-License-Identifier: GPL-2.013 	 * system counter is at least 56 bits wide; from Armv8.6, the counter  in rdtsc()
 14 	 * must be 64 bits wide.  So the system counter could be less than 64  in rdtsc()
 15 	 * bits wide and it is attributed with the flag 'cap_user_time_short'  in rdtsc()
 
 | 
| /linux/include/linux/ | 
| H A D | suspend.h | 1 /* SPDX-License-Identifier: GPL-2.0 */44  * struct platform_suspend_ops - Callbacks for managing platform dependent
 45  *	system sleep states.
 47  * @valid: Callback to determine if given system sleep state is supported by
 50  *	that it still may be impossible to enter given system sleep state if the
 55  * @begin: Initialise a transition to given system sleep state.
 63  * @prepare: Prepare the platform for entering the system sleep state indicated
 69  *	system canno
 [all...]
 | 
| /linux/certs/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.016          certificate as described in Documentation/admin-guide/module-signing.rst
 45 	bool "Provide system-wide ring of trusted keys"
 50 	  Provide a system keyring to which trusted keys can be added.  Keys in
 52 	  by the kernel from compiled-in data and from hardware key stores, but
 59 	string "Additional X.509 keys for default system keyring"
 62 	  If set, this option should be the filename of a PEM-formatted file
 64 	  system keyring. Any certificate used for module signing is implicitly
 67 	  NOTE: If you previously provided keys for the system keyring in the
 68 	  form of DER-encoded *.x509 files in the top-level build directory,
 [all …]
 
 | 
| /linux/Documentation/power/ | 
| H A D | freezing-of-tasks.rst | 11 kernel threads are controlled during hibernation or system-wide suspend (on some17 There is one per-task flag (PF_NOFREEZE) and three per-task states
 21 system enters a sleep state as well as before a hibernation image is created
 23 to system-wide suspend too).
 26 freeze_processes() (defined in kernel/power/process.c) is called.  A system-wide
 27 static key freezer_active (as opposed to a per-task flag or state) is used to
 28 indicate whether the system is to undergo a freezing operation. And
 45 signal-handling code, but the freezable kernel threads need to call it
 61 			oom_reaper_list = tsk->oom_reaper_list;
 73 entire system-wide transition will be cancelled.  For this reason, freezable
 [all …]
 
 | 
| /linux/Documentation/trace/ | 
| H A D | tracepoint-analysis.rst | 15 what is going on within the system. There are a large number of methods for27 ----------------------
 32   $ find /sys/kernel/tracing/events -type d
 37 ----------------------------------------
 55 3.1 System-Wide Event Enabling
 56 ------------------------------
 59 can be enabled system-wide. A short example of enabling all events related
 62   $ for i in `find /sys/kernel/tracing/events -name "enable" | grep mm_`; do echo 1 > $i; done
 64 3.2 System-Wide Event Enabling with SystemTap
 65 ---------------------------------------------
 [all …]
 
 | 
| /linux/Documentation/scheduler/ | 
| H A D | sched-rt-group.rst | 2 Real-Time group scheduling12      2.1 System-wide settings
 21  Fiddling with these settings can result in an unstable system, the knobs are
 27    system when the period is smaller than either the available hrtimer
 31    system when the runtime is so small the system has difficulty making
 33    are real-time processes).
 40 ---------------
 42 Real-time scheduling is all about determinism, a group has to be able to rely on
 44 multiple groups of real-time tasks, each group must be assigned a fixed portion
 45 of the CPU time available.  Without a minimum guarantee a real-time group can
 [all …]
 
 | 
| /linux/rust/kernel/ | 
| H A D | time.rs | 1 // SPDX-License-Identifier: GPL-2.010 //! - The [`Instant`] type represents a specific point in time.
 11 //! - The [`Delta`] type represents a span of time.
 50 pub fn msecs_to_jiffies(msecs: Msecs) -> Jiffies { in msecs_to_jiffies()
 72     fn ktime_get() -> bindings::ktime_t;
 77 /// A nonsettable system-wide cloc
 [all...]
 | 
| /linux/arch/arm/include/asm/ | 
| H A D | firmware.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */46 	 * Enter system-wide suspend.
 50 	 * Restore state of privileged hardware after system-wide suspend.
 62  * otherwise returns -ENOSYS
 65 	((firmware_ops->op) ? firmware_ops->op(__VA_ARGS__) : (-ENOSYS))
 
 |