Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 127) sorted by relevance

123456

/tools/scripts/
A Dutilities.mak42 # shell-escape-nl
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
54 define shell-escape-nl
58 # shell-unescape-nl
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
78 # escape-for-shell-sq
88 # shell-sq
92 shell-sq = '$(escape-for-shell-sq)'
94 # shell-wordify
135 is-absolute = $(shell echo $(shell-sq) | grep -q ^/ && echo y)
[all …]
A DMakefile.include4 $(if $(shell cd $(PWD); test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
5 ABSOLUTE_O := $(shell cd $(PWD); cd $(O) ; pwd)
16 OUTDIR := $(shell cd $(OUTPUT) && pwd)
75 CC_NO_CLANG := $(shell $(CC) -dM -E -x c /dev/null | grep -Fq "__clang__"; echo $$?)
107 GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null))
110 CLANG_CROSS_FLAGS += --sysroot=$(shell $(CROSS_COMPILE)gcc -print-sysroot)
/tools/testing/selftests/drivers/net/
A Dping.py43 shell=True, host=cfg.remote)
71 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote)
80 cmd(f"ip link set dev {cfg.remote_ifname} mtu 9000", shell=True, host=cfg.remote)
90 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote)
107 cmd(f"ip link set dev {cfg.remote_ifname} mtu 9000", shell=True, host=cfg.remote)
120 cmd(f"ip link set dev {cfg.ifname} mtu 1500", shell=True)
126 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote)
143 cmd(f"ip link set dev {cfg.ifname} mtu 1500", shell=True)
144 cmd(f"ip link set dev {cfg.ifname} xdp off ", shell=True)
145 cmd(f"ip link set dev {cfg.ifname} xdpgeneric off ", shell=True)
[all …]
/tools/verification/rv/
A DMakefile.config9 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
10 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
11 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
18 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >…
34 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/…
/tools/build/
A DMakefile.feature6 $(shell mkdir -p $(OUTPUT_FEATURES))
11 …feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_…
173 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null)
174 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null)
235 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
237 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
243 MSG = $(shell printf '...%40s: %s' $(1) $(2))
253 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
280 $(shell rm -f $(FEATURE_DUMP_FILENAME))
281 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
/tools/power/cpupower/bindings/python/
A DMakefile10 HAVE_SWIG := $(shell if which swig >/dev/null 2>&1; then echo 1; else echo 0; fi)
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))
14 INSTALL_DIR ?= $(shell python3 -c "import site; print(site.getsitepackages()[0])")
/tools/build/feature/
A DMakefile359 -I$(shell $(LLVM_CONFIG) --includedir) \
360 -L$(shell $(LLVM_CONFIG) --libdir) \
361 $(shell $(LLVM_CONFIG) --libs Core BPF) \
362 $(shell $(LLVM_CONFIG) --system-libs) \
367 -I$(shell $(LLVM_CONFIG) --includedir) \
368 -L$(shell $(LLVM_CONFIG) --libdir) \
369 $(shell $(LLVM_CONFIG) --libs Core BPF) \
370 $(shell $(LLVM_CONFIG) --system-libs) \
375 -I$(shell $(LLVM_CONFIG) --includedir) \
376 -L$(shell $(LLVM_CONFIG) --libdir) \
[all …]
/tools/perf/tests/
A DBuild84 SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh')
85 SHELL_TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log)
98 PY_TESTS := $(shell find tests/shell -type f -name '*.py')
99 MYPY_TEST_LOGS := $(PY_TESTS:tests/shell/%=shell/%.mypy_log)
111 PY_TESTS := $(shell find tests/shell -type f -name '*.py')
112 PYLINT_TEST_LOGS := $(PY_TESTS:tests/shell/%=shell/%.pylint_log)
/tools/tracing/latency/
A DMakefile.config6 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
7 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
8 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
/tools/testing/selftests/net/lib/py/
A Dutils.py34 def __init__(self, comm, shell=True, fail=True, ns=None, background=False, argument
60 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
114 def __init__(self, comm, shell=True, fail=None, ns=None, host=None, argument
117 shell=shell, fail=fail, ns=ns, host=host,
122 if shell and self.terminate:
209 cmd_obj = cmd(cmd_arr, ns=ns, host=host, shell=False)
245 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
/tools/testing/selftests/alsa/
A DMakefile3 ifneq ($(shell pkg-config --exists alsa && echo 0 || echo 1),0)
8 CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
9 LDLIBS += $(shell pkg-config --libs alsa)
/tools/testing/crypto/chacha20-s390/
A DMakefile10 make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
12 make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
/tools/testing/selftests/thermal/intel/power_floor/
A DMakefile3 uname_M := $(shell uname -m 2>/dev/null || echo not)
4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/testing/selftests/thermal/intel/workload_hint/
A DMakefile3 uname_M := $(shell uname -m 2>/dev/null || echo not)
4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/usb/ffs-aio-example/multibuff/host_app/
A DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/tools/usb/ffs-aio-example/simple/host_app/
A DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/tools/tracing/rtla/
A DMakefile.config9 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
10 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
11 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
18 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >…
34 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/…
/tools/testing/selftests/breakpoints/
A DMakefile3 uname_M := $(shell uname -m 2>/dev/null || echo not)
4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/testing/selftests/intel_pstate/
A DMakefile5 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
6 ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/testing/selftests/ipc/
A DMakefile2 uname_M := $(shell uname -m 2>/dev/null || echo not)
3 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
/tools/testing/selftests/prctl/
A DMakefile3 uname_M := $(shell uname -m 2>/dev/null || echo not)
4 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/testing/selftests/amd-pstate/
A DMakefile7 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
8 ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/testing/selftests/kexec/
A DMakefile4 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
5 ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/tools/power/cpupower/debug/kernel/
A DMakefile4 KDIR := /lib/modules/$(shell uname -r)/build
5 KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/
/tools/cgroup/
A Diocost_coef_gen.py63 stdout=subprocess.PIPE, shell=True).stdout
80 subprocess.check_call(f'rm -f {path}', shell=True)
81 subprocess.check_call(f'touch {path}', shell=True)
82 subprocess.call(f'chattr +C {path}', shell=True)
87 shell=True)
101 subprocess.check_call(cmd, shell=True)

Completed in 17 milliseconds

123456