Home
last modified time | relevance | path

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

1234567891011

/linux/tools/scripts/
H A Dutilities.mak22 # GNU make's $(shell ...) function converts to a
42 # shell-escape-nl
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
46 # Use this to escape newlines from within a shell call;
50 # in an `awk' program that is delimited by shell
54 define shell-escape-nl
58 # shell-unescape-nl
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
62 # Use this to unescape newlines from within a shell call;
67 # delimited by shell single-quotes, so be wary
[all …]
H 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)
/linux/tools/testing/selftests/drivers/net/
H A Dping.py43 shell=True, host=cfg.remote)
50 cmd(f"echo {test_string} | socat -t 2 -u STDIN TCP:{cfg.remote_baddr}:{port}", shell=True)
71 cmd(f"ip link set dev {cfg.remote_ifname} mtu 1500", shell=True, host=cfg.remote)
72 cmd(f"ip link set dev {cfg.ifname} mtu 1500 xdpgeneric obj {prog} sec xdp", shell=True)
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)
91 cmd(f"ip -j link set dev {cfg.ifname} mtu 1500 xdp obj {prog} sec xdp", shell=True)
107 cmd(f"ip link set dev {cfg.remote_ifname} mtu 9000", shell=True, host=cfg.remote)
110 cmd(f"ip link set dev {cfg.ifname} mtu 9000 xdp obj {prog} sec xdp.frags", shell=True)
120 cmd(f"ip link set dev {cfg.ifname} mtu 1500", shell=True)
[all …]
/linux/tools/build/feature/
H A DMakefile83 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config))
167 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
173 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
238 $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
241 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations
244 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
249 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
252 PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
344 -I$(shell $(LLVM_CONFIG) --includedir) \
345 -L$(shell $(LLVM_CONFIG) --libdir) \
[all …]
/linux/scripts/
H A DKconfig.include16 if-success = $(shell,{ $(1); } >/dev/null 2>&1 && echo "$(2)" || echo "$(3)")
44 cc-info := $(shell,$(srctree)/scripts/cc-version.sh $(CC))
46 cc-name := $(shell,set -- $(cc-info) && echo $1)
47 cc-version := $(shell,set -- $(cc-info) && echo $2)
50 as-info := $(shell,$(srctree)/scripts/as-version.sh $(CC) $(CLANG_FLAGS))
52 as-name := $(shell,set -- $(as-info) && echo $1)
53 as-version := $(shell,set -- $(as-info) && echo $2)
56 ld-info := $(shell,$(srctree)/scripts/ld-version.sh $(LD))
58 ld-name := $(shell,set -- $(ld-info) && echo $1)
59 ld-version := $(shell,set -- $(ld-info) && echo $2)
[all …]
H A DMakefile.headersinst29 src-headers := $(if $(src-subdirs), $(shell cd $(src) && find $(src-subdirs) -name '*.h'))
31 gen-headers := $(if $(gen-subdirs), $(shell cd $(gen) && find $(gen-subdirs) -name '*.h'))
49 old-headers := $(if $(old-subdirs),$(shell find $(old-subdirs) -name '*.h'))
56 $(if $(new-dirs), $(shell mkdir -p $(new-dirs)))
/linux/tools/build/
H A DMakefile.feature6 $(shell mkdir -p $(OUTPUT_FEATURES))
11 …feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_…
169 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null)
170 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null)
231 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
233 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
239 MSG = $(shell printf '...%40s: %s' $(1) $(2))
249 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
276 $(shell rm -f $(FEATURE_DUMP_FILENAME))
277 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
/linux/tools/perf/tests/
H A DBuild83 SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh')
84 SHELL_TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log)
97 PY_TESTS := $(shell find tests/shell -type f -name '*.py')
98 MYPY_TEST_LOGS := $(PY_TESTS:tests/shell/%=shell/%.mypy_log)
110 PY_TESTS := $(shell find tests/shell -type f -name '*.py')
111 PYLINT_TEST_LOGS := $(PY_TESTS:tests/shell/%=shell/%.pylint_log)
/linux/tools/verification/rv/
H 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/…
/linux/tools/testing/selftests/net/lib/py/
H A Dutils.py29 @shell defaults to false, and class will try to split @comm into a list
34 def __init__(self, comm, shell=None, fail=True, ns=None, background=False, argument
48 # If user doesn't explicitly request shell try to avoid it.
49 if shell is None and isinstance(comm, str) and ' ' in comm:
67 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
122 def __init__(self, comm, shell=None, fail=None, ns=None, host=None,
125 shell=shell, fail=fail, ns=ns, host=host,
131 if shell an
114 __init__(self, comm, shell=True, fail=None, ns=None, host=None, exit_wait=False, ksft_wait=None) global() argument
[all...]
/linux/tools/perf/
H A DMakefile.config15 $(shell printf "" > $(OUTPUT).config-detected)
16 detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected)
17 detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected)
40 CLANG_TARGET_FLAGS := $(shell $(CLANG) -print-target-triple)
191 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
197 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
256 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)…
325 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
330 ifeq ($(shell $(PYTHON_CONFIG_SQ) --ldflags --embed 2>&1 1>/dev/null; echo $$?), 0)
337 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) $(PYTHON_CONFIG_LDFLAGS) 2>/dev/null)
[all …]
H A DMakefile.perf156 SOURCE := $(shell ln -sfn $(srctree)/tools/perf $(OUTPUT)/source)
184 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config))
250 SHELLCHECK := $(shell which shellcheck 2> /dev/null)
257 ifeq ($(shell expr $(shell $(SHELLCHECK) --version | grep version: | \
267 MYPY := $(shell which mypy 2> /dev/null)
272 PYLINT := $(shell which pylint 2> /dev/null)
525 $(shell [ -d '$(beauty_ioctl_outdir)' ] || mkdir -p '$(beauty_ioctl_outdir)')
730 TESTS_CORESIGHT_DIR := $(srctree)/tools/perf/tests/shell/coresight
742 $(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python')
1135 $(INSTALL) tests/shell/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell'; \
[all …]
/linux/Documentation/
H A DMakefile11 $(shell $(srctree)/tools/docs/documentation-file-ref-check --warn)
16 $(shell $(srctree)/tools/docs/get_abi.py --dir $(srctree)/Documentation/ABI validate)
30 LATEXOPTS = -interaction=batchmode -no-shell-escape
43 HAVE_SPHINX := $(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi)
81 _SPHINXDIRS = $(shell printf "%s\n" $(patsubst $(srctree)/Documentation/%/index.rst,%,$(wildcard …
/linux/tools/power/cpupower/bindings/python/
H 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])")
/linux/Documentation/admin-guide/aoe/
H A Dexamples.rst11 :language: shell
17 :language: shell
23 :language: shell
/linux/tools/cgroup/
H 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)
/linux/tools/tracing/rtla/
H A DMakefile.config17 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
18 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
19 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
26 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent >…
42 …TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/…
/linux/tools/testing/selftests/mm/
H A DMakefile12 uname_M := $(shell uname -m 2>/dev/null || echo not)
14 uname_M := $(shell echo $(CROSS_COMPILE) | grep -o '^[a-z0-9]\+')
16 ARCH ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/powerpc/')
47 KDIR ?= /lib/modules/$(shell uname -r)/build
113 CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_program.c -m32)
114 CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_64bit_program.c)
115 CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_program.c -no-pie)
/linux/tools/testing/selftests/bpf/
H A DMakefile28 BPF_GCC ?= $(shell command -v bpf-gcc;)
34 LIBELF_CFLAGS := $(shell $(PKG_CONFIG) libelf --cflags 2>/dev/null)
35 LIBELF_LIBS := $(shell $(PKG_CONFIG) libelf --libs 2>/dev/null || echo -lelf)
56 PCAP_CFLAGS := $(shell $(PKG_CONFIG) --cflags libpcap 2>/dev/null && echo "-DTRAFFIC_MONITOR=1")
57 PCAP_LIBS := $(shell $(PKG_CONFIG) --libs libpcap 2>/dev/null)
70 ifneq ($(shell $(CLANG) --target=bpf -mcpu=help 2>&1 | grep 'v4'),)
166 ifeq ($(shell expr $(MAKE_VERSION) \>= 4.4), 1)
181 LLVM_CFLAGS += $(filter-out -D_GNU_SOURCE,$(shell $(LLVM_CONFIG) --cflags))
183 ifeq ($(shell $(LLVM_CONFIG) --link-static --libs >/dev/null 2>&1 && echo static),static)
184 LLVM_LDLIBS += $(shell $(LLVM_CONFIG) --link-static --libs $(LLVM_CONFIG_LIB_COMPONENTS))
[all …]
/linux/tools/testing/selftests/alsa/
H 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)
/linux/Documentation/kbuild/
H A Dkconfig-macro-language.rst38 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
107 - $(shell,command)
109 The "shell" function accepts a single argument that is expanded and passed
181 For example, $(shell echo hello, world) runs the command "echo hello, world".
188 $(shell, echo hello, world)
190 is an error because it is passing two parameters where the 'shell' function
194 $(shell, echo hello$(comma) world)
228 Obviously from the design, $(shell command) is expanded in the textual
229 substitution phase. You cannot pass symbols to the 'shell' function.
239 def_bool $(shell $(srctree)/scripts/gcc-check-flag ENDIAN_FLAG)
[all …]
/linux/tools/tracing/latency/
H A DMakefile.config14 $(eval LIB_INCLUDES += $(shell sh -c "$(PKG_CONFIG) --cflags lib$(1)"))
15 $(eval LDFLAGS += $(shell sh -c "$(PKG_CONFIG) --libs-only-L lib$(1)"))
16 $(eval EXTLIBS += $(shell sh -c "$(PKG_CONFIG) --libs-only-l lib$(1)"))
/linux/samples/hid/
H A DMakefile76 HDR_PROBE := $(shell printf "$(pound)include <linux/types.h>\n struct list_head { int a; }; int mai…
85 BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris)
86 BTF_PAHOLE_PROBE := $(shell $(BTF_PAHOLE) --help 2>&1 | grep BTF)
87 BTF_OBJCOPY_PROBE := $(shell $(LLVM_OBJCOPY) --help 2>&1 | grep -i 'usage.*llvm')
88 BTF_LLVM_PROBE := $(shell echo "int main() { return 0; }" | \
190 $(shell $(1) -v -E - </dev/null 2>&1 \
192 $(shell $(1) -dM -E - </dev/null | grep '#define __riscv_xlen ' | sed 's/#define /-D/' | sed 's/ /=…
/linux/scripts/kconfig/tests/preprocess/builtin_func/
H A DKconfig17 # 'shell' executes a command, and returns its stdout.
18 $(warning,$(shell,echo hello world 3))
22 $(warning,$(shell,printf 'hello\nworld\n\n4\n\n\n'))
/linux/tools/testing/selftests/x86/
H A DMakefile8 UNAME_M := $(shell uname -m)
9 CAN_BUILD_I386 := $(shell ./check_cc.sh "$(CC)" trivial_32bit_program.c -m32)
10 CAN_BUILD_X86_64 := $(shell ./check_cc.sh "$(CC)" trivial_64bit_program.c)
11 CAN_BUILD_WITH_NOPIE := $(shell ./check_cc.sh "$(CC)" trivial_program.c -no-pie)

1234567891011