Home
last modified time | relevance | path

Searched full:script (Results 1 – 25 of 783) sorted by relevance

12345678910>>...32

/linux/tools/perf/Documentation/
H A Dperf-script.txt1 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>] <script> [script-args]
18 There are several variants of perf script:
20 'perf script' to see a detailed trace of the workload that was
25 'perf script -l').
77 perf script
[all...]
H A Dperf-script-perl.txt
H A Dtips.txt6 Customize output of perf script with: perf script -F event,ip,sym
16 Show individual samples with: perf script
39 To compute metrics for samples use perf record -e '{cycles,instructions}' ... ; perf script -F +metric
47 To collect Processor Trace with samples use perf record -e '{intel_pt//,cycles}' ; perf script --call-trace or --insn-trace --xed -F +ipc (remove --xed if no xed)
48 To trace calls using Processor Trace use perf record -e intel_pt// ... ; perf script --call-trace. Then use perf script --time A-B --insn-trace to look at region of interest.
49 To measure approximate function latency with Processor Trace use perf record -e intel_pt// ... ; perf script --call-ret-trace
50 To trace only single function with Processor Trace use perf record --filter 'filter func @ program' -e intel_pt//u ./program ; perf script --insn-trace
56 To filter subset of samples with report or script ad
[all...]
/linux/tools/testing/selftests/exec/
H A Dcheck-exec-tests.sh21 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 …]
H A Dexecveat.c206 * 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 …]
/linux/tools/perf/tests/shell/
H A Dscript_python.sh
H A Dtest_brstack.sh45 if ! tr -s ' ' '\n' < "$TMPDIR/perf.script" | grep -E -m1 -q "$1"; then
57 perf script -i "$TMPDIR/perf.data" --fields brstacksym > "$TMPDIR/perf.script"
78 perf script -i "$TMPDIR/perf.data" --fields brstack | \
79 tr ' ' '\n' > "$TMPDIR/perf.script"
90 if grep -q -E -m1 "$regex" $TMPDIR/perf.script; then
117 perf script -i $TMPDIR/perf.data --fields brstacksym | \
118 tr ' ' '\n' > $TMPDIR/perf.script
151 perf script -i $TMPDIR/perf.data --fields brstack | \
152 tr ' ' '\n' > $TMPDIR/perf.script
[all...]
H A Dscript_perl.sh
H A Dscript.sh3 # perf script tests
7 temp_dir=$(mktemp -d /tmp/perf-test-script.XXXXXXXXXX)
15 if [ "${sane}" = "/tmp/perf-test-script" ] ; then
40 echo "SKIP: parallel-perf.py script not found "
48 python3 "${pp}" -o "${output1_dir}" --jobs 4 --verbose -- perf script -i "${perf_data}"
49 python3 "${pp}" -o "${output2_dir}" --jobs 4 --verbose --per-cpu -- perf script -i "${perf_data}"
H A Dtest_arm_coresight_disasm.sh
/linux/scripts/coccinelle/misc/
H A Ddo_div.cocci67 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 …]
H A Darray_size_dup.cocci38 @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/drivers/scsi/sym53c8xx_2/
H A Dsym_fw.h30 * 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/Documentation/userspace-api/
H A Dcheck_exec.rst10 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 interpreter
[all...]
/linux/tools/perf/
H A Dbuiltin-script.c234 // We need to refactor the evsel->priv use in 'perf script' to allow for
386 return fprintf(fp, "[ perf script: Wrote %.3f MB %s (%" PRIu64 " samples) ]\n", in output_type()
824 tod_scnprintf(struct perf_script *script, char *buf, int buflen, in perf_sample__fprintf_start()
835 if (buflen < 64 || !script) in perf_sample__fprintf_start()
838 env = perf_session__env(script->session); in perf_sample__fprintf_start()
899 static int perf_sample__fprintf_start(struct perf_script *script, in perf_sample__fprintf_start()
1000 tod_scnprintf(script, tstr, sizeof(tstr), sample->time); in perf_sample__fprintf_brstack()
2373 /* Skip if the script event has a metric_id that doesn't match. */
2411 * the script evsel was already set up avoid changing data that may in show_event()
2445 * Metric events match those in the script evlis in process_event()
743 tod_scnprintf(struct perf_script * script,char * buf,int buflen,u64 timestamp) tod_scnprintf() argument
816 perf_sample__fprintf_start(struct perf_script * script,struct perf_sample * sample,struct thread * thread,struct evsel * evsel,u32 type,FILE * fp) perf_sample__fprintf_start() argument
2416 process_event(struct perf_script * script,struct perf_sample * sample,struct evsel * evsel,struct addr_location * al,struct addr_location * addr_al,struct machine * machine) process_event() argument
2889 struct perf_script *script = container_of(tool, struct perf_script, tool); print_event_with_time() local
3016 struct perf_script *script = container_of(tool, struct perf_script, tool); process_switch_event() local
3113 perf_script__fclose_per_event_dump(struct perf_script * script) perf_script__fclose_per_event_dump() argument
3126 perf_script__fopen_per_event_dump(struct perf_script * script) perf_script__fopen_per_event_dump() argument
3153 perf_script__setup_per_event_dump(struct perf_script * script) perf_script__setup_per_event_dump() argument
3168 perf_script__exit_per_event_dump_stats(struct perf_script * script) perf_script__exit_per_event_dump_stats() argument
3181 perf_script__exit(struct perf_script * script) perf_script__exit() argument
3187 __cmd_script(struct perf_script * script) __cmd_script() argument
3259 find_script(const char * script) find_script() argument
3293 const char *script, *ext; parse_scriptname() local
3834 script__setup_sample_type(struct perf_script * script) script__setup_sample_type() argument
3879 set_maps(struct perf_script * script) set_maps() argument
3903 struct perf_script *script = container_of(tool, struct perf_script, tool); process_thread_map_event() local
3925 struct perf_script *script = container_of(tool, struct perf_script, tool); process_cpu_map_event() local
3958 struct perf_script *script = container_of(tool, struct perf_script, tool); perf_script__process_auxtrace_info() local
4041 struct perf_script script = {}; cmd_script() local
[all...]
/linux/samples/check-exec/
H A Dinc.c3 * 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/scripts/coccinelle/api/
H A Dstring_choices.cocci31 @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 …]
H A Dmemdup_user.cocci28 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/Documentation/dev-tools/
H A Dcheckuapi.rst7 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/drivers/scsi/
H A D53c700.h69 /* 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/tools/hv/
H A Dhv_get_dhcp_info.sh4 # 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
H A Dhv_get_dns_info.sh3 # This example script parses /etc/resolv.conf to retrieve 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/scripts/coccinelle/null/
H A Dbadzero.cocci70 @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/tools/testing/selftests/rcutorture/bin/
H A Dkvm-get-cpus-script.sh4 # 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/tools/perf/scripts/python/
H A Dflamegraph.py

12345678910>>...32