/linux-6.14.4/tools/perf/Documentation/ |
D | perf-script-python.txt | 1 perf-script-python(1) 6 perf-script-python - Process trace data with a Python script 11 'perf script' [-s [Python]:script[.py] ] 16 This perf script option is used to process perf script data using perf's 19 Python script, if any. 25 Python script that aggregates and extracts useful information from a 26 raw perf script stream. You can avoid reading the rest of this 29 available to script writers. 32 'syscall-counts' script you see when you list the available perf script 33 scripts via 'perf script -l'. As such, this script also shows how to [all …]
|
D | perf-script.txt | 1 perf-script(1) 6 perf-script - Read perf.data (created by perf record) and display trace output 11 'perf script' [<options>] 12 'perf script' [<options>] record <script> [<record-options>] <command> 13 'perf script' [<options>] report <script> [script-args] 14 'perf script' [<options>] <script> <required-script-args> [<record-options>] <command> 15 'perf script' [<options>] <top-script> [script-args] 21 There are several variants of perf script: 23 'perf script' to see a detailed trace of the workload that was 28 available via 'perf script -l'). The following variants allow you to [all …]
|
D | perf-script-perl.txt | 1 perf-script-perl(1) 6 perf-script-perl - Process trace data with a Perl script 11 'perf script' [-s [Perl]:script[.pl] ] 16 This perf script option is used to process perf script data using perf's 19 Perl script, if any. 24 You can avoid reading the rest of this document by running 'perf script 26 That will generate a starter script containing a handler for each of 33 the check-perf-script.pl script, while not interesting for its results, 39 When perf script is invoked using a trace script, a user-defined 54 Traces meant to be processed using a script should be recorded with [all …]
|
D | tips.txt | 6 Customize output of perf script with: perf script -F event,ip,sym 7 Generate a script for your data: perf script -g <lang> 17 Show individual samples with: perf script 40 To compute metrics for samples use perf record -e '{cycles,instructions}' ... ; perf script -F +met… 48 To collect Processor Trace with samples use perf record -e '{intel_pt//,cycles}' ; perf script --ca… 49 …rocessor Trace use perf record -e intel_pt// ... ; perf script --call-trace. Then use perf script … 50 …ction latency with Processor Trace use perf record -e intel_pt// ... ; perf script --call-ret-trace 51 …se perf record --filter 'filter func @ program' -e intel_pt//u ./program ; perf script --insn-trace 57 To filter subset of samples with report or script add --time X-Y or --cpu A,B,C or --socket-filter …
|
/linux-6.14.4/tools/testing/selftests/exec/ |
D | check-exec-tests.sh | 21 local script="$2" 27 out="$(PATH="." "$@" "${script}")" || ret=$? 41 local script="$2" 46 # Script passed as argument. 47 out="$("$@" ./inc "${script}")" || ret=$? 61 local script="$2" 67 out="$("$@" ./inc -i < "${script}")" || ret=$? 86 out="$(cat script-exec.inc | "$@" ./inc -i)" || ret=$? 100 # Script not coming from a file must not be executed. 101 out="$("$@" ./inc -c "$(< script-exec.inc)")" || ret=$? [all …]
|
D | execveat.c | 206 * a script or not (because the interpreter sees a filename like in check_execveat_pathmax() 221 * Execute as a long pathname relative to "/". If this is a script, in check_execveat_pathmax() 222 * the interpreter will launch but fail to open the script because its in check_execveat_pathmax() 231 ksft_print_msg("Invoke script via root_dfd and relative filename\n"); in check_execveat_pathmax() 269 char *fullname_script = realpath("script", NULL); in run_tests() 284 int fd_script = open_or_die("script", O_RDONLY); in run_tests() 288 int fd_script_ephemeral = open_or_die("script.ephemeral", O_RDONLY); in run_tests() 290 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests() 361 /* Shell script wrapping executable file: */ in run_tests() 363 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests() [all …]
|
D | Makefile | 15 TEST_GEN_PROGS_EXTENDED := false inc set-exec script-exec.inc script-noexec.inc 16 TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir 33 $(OUTPUT)/script: Makefile 54 $(OUTPUT)/script-exec.inc: $(CHECK_EXEC_SAMPLES)/script-exec.inc 56 $(OUTPUT)/script-noexec.inc: $(CHECK_EXEC_SAMPLES)/script-noexec.inc
|
/linux-6.14.4/tools/perf/tests/shell/ |
D | test_task_analyzer.sh | 2 # perf script task-analyzer tests (exclusive) 5 tmpdir=$(mktemp -d /tmp/perf-script-task-analyzer-XXXXX) 75 perf script report task-analyzer > "$out" 76 check_exec_0 "perf script report task-analyzer" 82 perf script report task-analyzer --ns --rename-comms-by-tids 0:random > "$out" 83 check_exec_0 "perf script report task-analyzer --ns --rename-comms-by-tids 0:random" 89 perf script report task-analyzer --ms --filter-tasks perf --highlight-tasks perf \ 91 check_exec_0 "perf script report task-analyzer --ms --filter-tasks perf --highlight-tasks perf" 97 perf script report task-analyzer --extended-times --time-limit :99999 \ 99 …check_exec_0 "perf script report task-analyzer --extended-times --time-limit :99999 --limit-to-tas… [all …]
|
D | test_brstack.sh | 33 perf script -i $TMPDIR/perf.data --fields brstacksym | tr -s ' ' '\n' > $TMPDIR/perf.script 39 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_foo\+[^ ]*/IND_CALL/.*$" $TMPDIR/perf.script 40 grep -E -m1 "^brstack_foo\+[^ ]*/brstack_bar\+[^ ]*/CALL/.*$" $TMPDIR/perf.script 41 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_foo\+[^ ]*/CALL/.*$" $TMPDIR/perf.script 42 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_bar\+[^ ]*/CALL/.*$" $TMPDIR/perf.script 43 grep -E -m1 "^brstack_bar\+[^ ]*/brstack_foo\+[^ ]*/RET/.*$" $TMPDIR/perf.script 44 grep -E -m1 "^brstack_foo\+[^ ]*/brstack_bench\+[^ ]*/RET/.*$" $TMPDIR/perf.script 45 grep -E -m1 "^brstack_bench\+[^ ]*/brstack_bench\+[^ ]*/COND/.*$" $TMPDIR/perf.script 46 grep -E -m1 "^brstack\+[^ ]*/brstack\+[^ ]*/UNCOND/.*$" $TMPDIR/perf.script 62 perf script -i $TMPDIR/perf.data --fields brstack | tr -s ' ' '\n' | grep '.' > $TMPDIR/perf.script [all …]
|
D | script.sh | 2 # perf script tests 7 temp_dir=$(mktemp -d /tmp/perf-test-script.XXXXXXXXXX) 18 if [ "${sane}" = "/tmp/perf-test-script" ] ; then 38 # Check if python script is supported 66 perf script -i "${perfdatafile}" -s "${db_test}" 81 echo "SKIP: parallel-perf.py script not found " 89 python3 "${pp}" -o "${output1_dir}" --jobs 4 --verbose -- perf script -i "${perf_data}" 90 python3 "${pp}" -o "${output2_dir}" --jobs 4 --verbose --per-cpu -- perf script -i "${perf_data}"
|
/linux-6.14.4/scripts/coccinelle/misc/ |
D | do_div.cocci | 67 long l: script:python() { filter_out_safe_constants(l) }; 68 unsigned long ul : script:python() { filter_out_safe_constants(ul) }; 69 u64 ul64 : script:python() { filter_out_safe_constants(ul64) }; 70 s64 sl64 : script:python() { filter_out_safe_constants(sl64) }; 86 long l: script:python() { filter_out_safe_constants(l) }; 87 unsigned long ul : script:python() { filter_out_safe_constants(ul) }; 88 u64 ul64 : script:python() { filter_out_safe_constants(ul64) }; 89 s64 sl64 : script:python() { filter_out_safe_constants(sl64) }; 101 @script:python depends on org@ 108 @script:python depends on org@ [all …]
|
D | array_size_dup.cocci | 38 @script:python depends on report@ 46 @script:python depends on org@ 67 @script:python depends on report@ 75 @script:python depends on org@ 103 @script:python depends on report@ 111 @script:python depends on org@ 133 @script:python depends on report@ 141 @script:python depends on org@ 167 @script:python depends on report@ 175 @script:python depends on org@ [all …]
|
/linux-6.14.4/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.h | 30 * Macro used to generate interfaces for script A. 49 * Macro used to generate interfaces for script B. 65 * Macro used to generate interfaces for script Z. 72 * offsets within script A, B and Z. 91 * bus addresses within script A, B and Z. 119 u32 *a_base; /* Pointer to script A template */ 120 int a_size; /* Size of script A */ 122 *a_ofs; /* Useful offsets in script A */ 123 u32 *b_base; /* Pointer to script B template */ 124 int b_size; /* Size of script B */ [all …]
|
/linux-6.14.4/tools/perf/ |
D | builtin-script.c | 224 // We need to refactor the evsel->priv use in in 'perf script' to allow for 384 return fprintf(fp, "[ perf script: Wrote %.3f MB %s (%" PRIu64 " samples) ]\n", in evsel_script__fprintf() 736 tod_scnprintf(struct perf_script *script, char *buf, int buflen, in tod_scnprintf() argument 747 if (buflen < 64 || !script) in tod_scnprintf() 750 env = &script->session->header.env; in tod_scnprintf() 797 static int perf_sample__fprintf_start(struct perf_script *script, in perf_sample__fprintf_start() argument 898 tod_scnprintf(script, tstr, sizeof(tstr), sample->time); in perf_sample__fprintf_start() 2078 static void perf_sample__fprint_metric(struct perf_script *script, in perf_sample__fprint_metric() argument 2100 evlist__alloc_stats(&stat_config, script->session->evlist, /*alloc_raw=*/false); in perf_sample__fprint_metric() 2159 static void process_event(struct perf_script *script, in process_event() argument [all …]
|
/linux-6.14.4/Documentation/userspace-api/ |
D | check_exec.rst | 10 are intended for script interpreters and dynamic linkers to enforce a 16 environment, and whether the kernel can check if a script is trustworthy or 23 Script interpreters or dynamic linkers built for tailored execution environments 28 for script interpreters and dynamic linkers to check the securebits at run time 39 (e.g. ELF libraries, script's shebang). 50 ``./script.sh``) and indirect file execution (e.g. ``sh script.sh``) lead to 81 However, script interpreters may still use user configuration such as 84 a script's caller. Changing these variables may lead to unintended code 95 For instance, script interpreters called with a script snippet as argument 102 Here is the expected behavior for a script interpreter according to combination [all …]
|
/linux-6.14.4/samples/check-exec/ |
D | inc.c | 3 * Very simple script interpreter that can evaluate two different commands (one 75 static int interpret_stream(FILE *script, char *const script_name, in interpret_stream() argument 85 * script execution. We must use the script file descriptor instead of in interpret_stream() 86 * the script path name to avoid race conditions. in interpret_stream() 88 err = sys_execveat(fileno(script), "", script_argv, envp, in interpret_stream() 91 perror("ERROR: Script execution check"); in interpret_stream() 95 /* Reads script. */ in interpret_stream() 96 buf_size = fread(buf, 1, buf_size - 1, script); in interpret_stream() 102 fprintf(stderr, "usage: %s <script.inc> | -i | -c <command>\n\n", in print_usage() 105 fprintf(stderr, " ./set-exec -fi -- ./inc -i < script-exec.inc\n"); in print_usage() [all …]
|
/linux-6.14.4/scripts/coccinelle/api/ |
D | string_choices.cocci | 31 @script:python depends on report@ 50 @script:python depends on report@ 69 @script:python depends on report@ 88 @script:python depends on report@ 107 @script:python depends on report@ 126 @script:python depends on report@ 145 @script:python depends on report@ 164 @script:python depends on report@ 183 @script:python depends on report@ 202 @script:python depends on report@ [all …]
|
D | memdup_user.cocci | 28 position p : script:python() { relevant(p) }; 53 position p : script:python() { relevant(p) }; 75 position p : script:python() { relevant(p) }; 88 position p : script:python() { relevant(p) }; 97 @script:python depends on org@ 103 @script:python depends on report@ 109 @script:python depends on org@ 115 @script:python depends on report@
|
/linux-6.14.4/Documentation/dev-tools/ |
D | checkuapi.rst | 7 The UAPI checker (``scripts/check-uapi.sh``) is a shell script which 73 Now, let's use the script to validate:: 97 The script will catch this:: 116 In this case, the script is reporting the type change because it could 120 anything. You can pass the ``-i`` flag to the script to ignore changes 147 and the script will report the breakage even if you pass ``-i``:: 172 Now, let's run the script again with no arguments:: 184 let's pass ``-p HEAD~2`` to the script so it checks UAPI changes between 202 base reference to ``HEAD~`` so then the script would compare it to ``HEAD~^1``. 223 running the script from an x86 machine with an x86 compiler, so, by default, [all …]
|
/linux-6.14.4/drivers/scsi/ |
D | 53c700.h | 69 /* The following is a script fragment to move the buffer onto the 218 __u32 *script; /* pointer to script location */ member 219 __u32 pScript; /* physical mem addr of script */ 228 #define MSGOUT_OFFSET (L1_CACHE_ALIGN(sizeof(SCRIPT))) 425 #define script_patch_32(h, script, symbol, value) \ argument 430 __u32 val = bS_to_cpu((script)[A_##symbol##_used[i]]) + da; \ 431 (script)[A_##symbol##_used[i]] = bS_to_host(val); \ 432 dma_sync_to_dev((h), &(script)[A_##symbol##_used[i]], 4); \ 433 DEBUG((" script, patching %s at %d to %pad\n", \ 438 #define script_patch_32_abs(h, script, symbol, value) \ argument [all …]
|
/linux-6.14.4/tools/hv/ |
D | hv_get_dhcp_info.sh | 4 # This example script retrieves the DHCP state of a given interface. 6 # information; the kvp daemon code invokes this external script to gather 11 # Output: The script prints the string "Enabled" to stdout to indicate 13 # the script prints the string "Disabled" to stdout. 15 # Each Distro is expected to implement this script in a distro specific 17 # this script can be based on the Network Manager APIs for retrieving DHCP
|
D | hv_get_dns_info.sh | 3 # This example script parses /etc/resolv.conf to retrive DNS information. 5 # information; the kvp daemon code invokes this external script to gather 7 # This script is expected to print the nameserver values to stdout. 8 # Each Distro is expected to implement this script in a distro specific 10 # this script can be based on the Network Manager APIs for retrieving DNS
|
/linux-6.14.4/scripts/coccinelle/null/ |
D | badzero.cocci | 70 @script:python depends on org@ 76 @script:python depends on report@ 93 @script:ocaml depends on s@ 113 @script:ocaml@ 168 @script:python depends on org@ 174 @script:python depends on org@ 180 @script:python depends on report@ 186 @script:python depends on report@ 229 @script:python depends on org@ 235 @script:python depends on report@
|
/linux-6.14.4/tools/testing/selftests/rcutorture/bin/ |
D | kvm-get-cpus-script.sh | 4 # Create an awk script that takes as input numbers of CPUs and outputs 7 # Usage: kvm-get-cpus-script.sh /path/to/cpu/arrays /path/to/put/script [ /path/to/state ] 12 # The optional state is input by this script (if the file exists and is 13 # non-empty), and can also be output by this script. 27 echo "Directory not usable for script output: $scriptdir" 66 # script can continue where this one left off. Of course, this only works
|
/linux-6.14.4/tools/perf/scripts/python/ |
D | flamegraph.py | 7 # perf script report flamegraph 11 # perf script flamegraph -a -F 99 sleep 60 36 <script type="text/javascript" src="https://d3js.org/d3.v7.js"></script> 37 …<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3-flam… 38 <script type="text/javascript"> 47 </script> 121 # when this script is invoked with "perf script flamegraph", 156 … print("""Not attempting to download Flame Graph template as script command line 159 -F 99 sleep 60' and 'perf script report flamegraph'. Alternatively,
|