Home
last modified time | relevance | path

Searched full:python (Results 1 – 25 of 268) sorted by relevance

1234567891011

/linux/scripts/coccinelle/misc/
H A Ddo_div.cocci18 @initialize:python@
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@
[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 …]
H A Dminmax.cocci168 @script:python depends on report@
175 @script:python depends on org@
182 @script:python depends on report@
189 @script:python depends on org@
196 @script:python depends on report@
203 @script:python depends on org@
210 @script:python depends on report@
217 @script:python depends on org@
H A Dflexible_array.cocci18 @initialize:python@
29 position p : script:python() { relevant(p) };
73 position p : script:python() { relevant(p) };
95 @script: python depends on report@
102 @script: python depends on org@
/linux/tools/perf/tests/shell/lib/
H A Dsetup_python.sh4 if [ "x$PYTHON" = "x" ]
6 python3 --version >/dev/null 2>&1 && PYTHON=python3
8 if [ "x$PYTHON" = "x" ]
10 python --version >/dev/null 2>&1 && PYTHON=python
12 if [ "x$PYTHON" = "x" ]
14 echo Skipping test, python not detected please set environment variable PYTHON.
/linux/tools/perf/tests/shell/
H A Dscript_python.sh2 # perf script python tests
9 if [ -e "$perfdir/scripts/python/Perf-Trace-Util" ]; then
35 echo "perf script python test [Skipped: no libpython support]"
50 echo "perf script python test [Skipped: failed to record $event_name]"
54 echo "Generating python script..."
56 echo "perf script python test [Failed: script generation for $event_name]"
61 echo "perf script python test [Failed: script not generated for $event_name]"
65 # Perf script -g python doesn't generate process_event for generic
75 echo "Executing python script..."
79 echo "perf script python test [Success: $event_name triggered $expected_output]"
[all …]
H A Dstat+json_output.sh40 $PYTHON $pythonchecker --no-args --file "${stat_output}"
53 $PYTHON $pythonchecker --system-wide --file "${stat_output}"
66 $PYTHON $pythonchecker --system-wide-no-aggr --file "${stat_output}"
74 $PYTHON $pythonchecker --interval --file "${stat_output}"
83 $PYTHON $pythonchecker --event --file "${stat_output}"
96 $PYTHON $pythonchecker --per-core --file "${stat_output}"
109 $PYTHON $pythonchecker --per-thread --file "${stat_output}"
121 perf stat -j --per-cache -a true 2>&1 | $PYTHON $pythonchecker --per-cache
133 perf stat -j --per-cluster -a true 2>&1 | $PYTHON $pythonchecker --per-cluster
146 $PYTHON $pythonchecker --per-die --file "${stat_output}"
[all …]
H A Dpython-use.sh2 # 'import perf' in python
4 # Just test if we can load the python binding.
11 MODULE_DIR=$(dirname "$(which perf)")/python
32 if ! echo "$CMD" | $PYTHON | grep -q "success!"
H A Dscript.sh38 # Check if python script is supported
39 if perf version --build-options | grep python | grep -q OFF ; then
40 echo "SKIP: python scripting is not supported"
64 # Disable lsan to avoid warnings about python memory leaks.
79 pp=$(dirname "$0")/../../scripts/python/parallel-perf.py
H A Djitdump-python.sh2 # python profiling with jitdump
9 OUTPUT=$(${PYTHON} -Xperf_jit -c 'import os, sys; print(os.getpid(), sys.is_stack_trampoline_active…
15 echo "SKIP: python JIT dump is not available"
36 echo "Run python with -Xperf_jit"
38 -- ${PYTHON} -Xperf_jit
/linux/tools/lib/python/kdoc/
H A Dpython_version.py6 Handle Python version check logic.
8 Not all Python versions are supported by scripts. Yet, on some cases,
9 like during documentation build, a newer version of python could be
16 Python version if present.
32 types of types, like binaries, python modules, rpm deps, etc.
87 Get python version from a Python binary. As we need to detect if
88 are out there newer python binaries, we can't rely on sys.release here.
114 Detect if are out there any python 3.xy version newer than the
127 # Seek for a python binar
[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.cocci18 @initialize:python@
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@
H A Dkfree_sensitive.cocci18 @initialize:python@
36 position p : script:python() { relevant(p) };
52 position p : script:python() { relevant(p) };
70 position p : script:python() { relevant(p) };
86 @script:python depends on report@
94 @script:python depends on org@
H A Dplatform_no_drv_owner.cocci132 @script:python fix1_org depends on org@
139 @script:python fix1_i2c_org depends on org@
146 @script:python fix2_org depends on org@
153 @script:python fix2_i2c_org depends on org@
162 @script:python fix1_report depends on report@
169 @script:python fix1_i2c_report depends on report@
176 @script:python fix2_report depends on report@
183 @script:python fix2_i2c_report depends on report@
H A Dkfree_mismatch.cocci164 @script: python depends on report@
172 @script: python depends on org@
180 @script: python depends on report@
188 @script: python depends on org@
196 @script: python depends on report@
204 @script: python depends on org@
212 @script: python depends on report@
221 @script: python depends on org@
/linux/tools/power/cpupower/bindings/python/
H A DREADME1 This folder contains the necessary files to build the Python bindings for
14 * The Python's development libraries must be installed.
16 Please check that your version of SWIG is compatible with the version of Python
33 Install SWIG and the Python development files provided by your distribution.
51 $ python test_raw_pylibcpupower.py
57 You need to add the Python bindings directory to your $PYTHONPATH.
61 PYTHONPATH=~/linux/tools/power/cpupower/bindings/python:$PYTHONPATH
69 Python uses a system specific site-packages folder to look up modules to import
H A DMakefile2 # Makefile for libcpupower's Python bindings
11 HAVE_PYCONFIG := $(shell if which python-config >/dev/null 2>&1; then echo 1; else echo 0; fi)
13 PY_INCLUDE ?= $(firstword $(shell python-config --includes))
28 …$(error "python-config was not found. Make sure you have it installed and in the PATH to generate …
30 swig -python raw_pylibcpupower.swg
32 # Only installs the Python bindings
/linux/tools/perf/
H A DMakefile.config285 # python[2][3]-config in weird combinations in the following order of
288 # * python-config
290 # * $(PYTHON)-config (If PYTHON is user supplied but PYTHON_CONFIG isn't)
292 PYTHON_AUTO := python-config
294 PYTHON_AUTO := $(if $(call get-executable,python-config),python-config,$(PYTHON_AUTO))
297 # If PYTHON is defined but PYTHON_CONFIG isn't, then take $(PYTHON)-config as if it was the user
299 ifdef PYTHON
[all...]
H A DBuild81 PY_TESTS := $(shell find python -type f -name '*.py')
82 MYPY_TEST_LOGS := $(PY_TESTS:python/%=python/%.mypy_log)
94 PY_TESTS := $(shell find python -type f -name '*.py')
95 PYLINT_TEST_LOGS := $(PY_TESTS:python/%=python/%.pylint_log)
/linux/tools/docs/
H A Dsphinx-pre-install8 # Note: this script requires at least Python 3.6 to run.
10 # incompatible python versions.
16 build documentation using Sphinx, including system packages, Python modules
24 system package installations and Python virtual environments. By default,
38 sys.path.insert(0, os.path.join(src_dir, '../lib/python'))
50 - Python: python dependencies for a native distro Sphinx install;
105 msg = "Python"
215 types of types, like binaries, python modules, rpm deps, etc.
236 Preserve compatibility with older Python versions.
252 # Don't break with older Python versions
[all …]
/linux/scripts/coccinelle/null/
H A Dbadzero.cocci70 @script:python depends on org@
76 @script:python depends on report@
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/scripts/coccinelle/api/alloc/
H A Dzalloc-simple.cocci156 @script:python depends on org@
165 @script:python depends on report@
186 @script:python depends on org@
195 @script:python depends on report@
216 @script:python depends on org@
225 @script:python depends on report@
246 @script:python depends on org@
255 @script:python depends on report@
276 @script:python depends on org@
285 @script:python depends on report@
[all …]
/linux/tools/perf/pmu-events/
H A DBuild38 # Python to build the generic legacy cache events
45 $(Q)$(call echo-cmd,gen)$(PYTHON) $(LEGACY_CACHE_PY) > $@
47 # Python to generate architectural metrics
62 $(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) pmu-events/arch > $@
66 $(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) pmu-events/arch > $@
79 $(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call vendor_name,$@) $(call model_name,$@) pmu-events/arch > $@
83 $(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call vendor_name,$@) $(call model_name,$@) pmu-events/arch > $@
96 $(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) pmu-events/arch > $@
100 $(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) pmu-events/arch > $@
158 $(Q)$(call echo-cmd,test)$(PYTHON)
[all...]
/linux/tools/perf/Documentation/
H A Ddb-export.txt4 perf tool's python scripting engine:
6 tools/perf/util/scripting-engines/trace-event-python.c
10 tools/perf/scripts/python/export-to-sqlite.py
11 tools/perf/scripts/python/export-to-postgresql.py

1234567891011