Home
last modified time | relevance | path

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

12345678910

/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)
77 CC_NO_CLANG := $(shell $(CC) -dM -E -x c /dev/null | grep -Fq "__clang__"; echo $$?)
111 GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null))
114 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/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/feature/
H A DMakefile83 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config))
116 $(shell $(PKG_CONFIG) --libs --cflags openssl 2>/dev/null)
173 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
179 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
243 $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
246 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations
249 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
254 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
257 PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
352 -I$(shell
[all...]
/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_CFLAGS) $(FEATURE_CHECK_CFLAGS-$(1))" CXXFLAGS="$(EXTRA_CXXFLAGS) $(FEATURE_CHECK_CXXFLAGS-$(1))" LDFLAGS="$(LDFLAGS) $(FEATURE_CHECK_LDFLAGS-$(1))" -C $(feature_dir) $(OUTPUT_FEATURES)test-$1.bin >/dev/null 2>/dev/null && echo 1 || echo 0)
178 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null)
179 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null)
246 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
248 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
254 MSG = $(shell printf '...%40s: %s' $(1) $(2))
264 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
291 $(shell rm -f $(FEATURE_DUMP_FILENAME))
292 $(foreach feat,$(FEATURE_TESTS),$(shell ech
[all...]
/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/perf/tests/
H 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
[all...]
/linux/tools/objtool/
H A DMakefile15 HAVE_XXHASH = $(shell printf "$(pound)include <xxhash.h>\nXXH3_state_t *state;int main() {}" | \
19 LIBXXHASH_CFLAGS := $(shell $(HOSTPKG_CONFIG) libxxhash --cflags 2>/dev/null) \
21 LIBXXHASH_LIBS := $(shell $(HOSTPKG_CONFIG) libxxhash --libs 2>/dev/null || echo -lxxhash)
45 LIBELF_FLAGS := $(shell $(HOSTPKG_CONFIG) libelf --cflags 2>/dev/null)
46 LIBELF_LIBS := $(shell $(HOSTPKG_CONFIG) libelf --libs 2>/dev/null || echo -lelf)
69 elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(HOSTCC) $(OBJTOOL_CFLAGS) -x c -E - 2>/dev/null | grep elf_getshdr)
87 LIBOPCODES_LIBS := $(shell \
99 HAVE_DISASM_STYLED := $(shell echo '$(pound)include <dis-asm.h>' | \
/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/tools/testing/selftests/net/lib/py/
H A Dutils.py41 @shell defaults to false, and class will try to split @comm into a list
46 def __init__(self, comm, shell=None, fail=True, expect_fail=False, ns=None,
68 # If user doesn't explicitly request shell try to avoid it.
69 if shell is None and isinstance(comm, str) and ' ' in comm:
87 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
180 def __init__(self, comm, shell=None, fail=None, expect_fail=None,
184 shell=shell, fail=fail, expect_fail=expect_fail,
192 if shell an
34 __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5, ksft_wait=None) global() argument
114 __init__(self, comm, shell=True, fail=None, ns=None, host=None, exit_wait=False, ksft_wait=None) global() argument
[all...]
/linux/Documentation/admin-guide/aoe/
H A Dexamples.rst11 :language: shell
17 :language: shell
23 :language: shell
/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)
172 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
178 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
234 ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \>\= 371), 1)
303 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
308 ifeq ($(shell
[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/tools/testing/selftests/drivers/net/hw/
H A Ddevmem.py
/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/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 > /dev/null 2>&1 && echo y || echo n")
42 TEST = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/null 2>&1 && echo y || echo n")
/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/testing/crypto/chacha20-s390/
H 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
/linux/tools/testing/selftests/thermal/intel/workload_hint/
H A DMakefile3 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
4 override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/linux/tools/testing/selftests/thermal/intel/power_floor/
H A DMakefile3 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
4 override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
/linux/tools/usb/ffs-aio-example/simple/host_app/
H A DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/linux/tools/usb/ffs-aio-example/multibuff/host_app/
H A DMakefile3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/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'))

12345678910