Home
last modified time | relevance | path

Searched full:shell (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/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 …]
/linux/tools/tracing/rtla/tests/
H A Dosnoise.t11 …"osnoise top -P F:1 -c 0 -r 900000 -d 10s -q -S 1 --on-threshold shell,command=\"tests/scripts/che…
34 "osnoise hist -S 2 --on-threshold shell,command='echo TestOutput'" 2 "^TestOutput$"
36 …"osnoise hist -S 2 --on-threshold shell,command='echo -n 1' --on-threshold shell,command='echo 2'"…
38 …"osnoise hist -S 2 --on-threshold shell,command='echo -n 1; false' --on-threshold shell,command='e…
40 …"osnoise top -S 2 --on-threshold shell,command='echo -n abc; false' --on-threshold shell,command='…
42 …"osnoise hist -S 2 -d 5s --on-threshold shell,command='echo TestOutput' --on-threshold continue" 0…
44 …"osnoise top -q -S 2 -d 5s --on-threshold shell,command='echo TestOutput' --on-threshold continue"…
H A Dtimerlat.t28 "timerlat top -P F:1 -c 0 -d 10s -q -T 1 --on-threshold shell,command=\"tests/scripts/check-priority.sh timerlatu/ SCHED_FIFO 1\"" \
55 "timerlat hist -T 2 --on-threshold shell,command='echo TestOutput'" 2 "^TestOutput$"
57 "timerlat hist -T 2 --on-threshold shell,command='echo -n 1' --on-threshold shell,command='echo 2'" 2 "^12$"
59 "timerlat hist -T 2 --on-threshold shell,command='echo -n 1; false' --on-threshold shell,command='echo -n 2'" 2 "^1# RTLA timerlat histogram$"
61 "timerlat top -T 2 --on-threshold shell,command='echo -n abc; false' --on-threshold shell,command='echo -n defgh'" 2 "^abc" "defgh"
63 "timerlat hist -T 2 -d 5s --on-threshold shell,command='echo TestOutput' --on-threshold continue" 0 "^TestOutput$"
65 "timerlat top -q -T 2 -d 5s --on-threshold shell,comman
[all...]
/linux/tools/perf/
H A DMakefile.perf157 SOURCE := $(shell ln -sfn $(srctree)/tools/perf $(OUTPUT)/source)
185 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config))
247 # Runs shellcheck on perf shell scripts
251 SHELLCHECK := $(shell which shellcheck 2> /dev/null)
259 ifeq ($(shell expr $(shell $(SHELLCHECK) --version | grep version: | \
269 MYPY := $(shell which mypy 2> /dev/null)
274 PYLINT := $(shell which pylint 2> /dev/null)
494 SHELL = $(SHELL_PATH)
527 $(shell [ -d '$(beauty_ioctl_outdir)' ] || mkdir -p '$(beauty_ioctl_outdir)')
535 $(Q)$(SHELL) '$(syscall_tbl)' $(srctree)/tools $@
[all …]
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)
182 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
188 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
247 …ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)…
316 PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
321 ifeq ($(shell $(PYTHON_CONFIG_SQ) --ldflags --embed 2>&1 1>/dev/null; echo $$?), 0)
328 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) $(PYTHON_CONFIG_LDFLAGS) 2>/dev/null)
[all …]
/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/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)
H A Dtests-scripts.c35 "./tools/perf/tests/shell", in shell_tests__dir_fd()
36 "./tests/shell", in shell_tests__dir_fd()
37 "./source/tests/shell" in shell_tests__dir_fd()
62 scnprintf(path, sizeof(path), "%s/tests/shell", path2); in shell_tests__dir_fd()
66 scnprintf(path, sizeof(path), "%s/source/tests/shell", path2); in shell_tests__dir_fd()
73 scnprintf(path, sizeof(path), "%s/tests/shell", exec_path); in shell_tests__dir_fd()
120 /* Is this full file path a shell script */
135 /* Is this file in this dir a shell script (for test purposes) */
H A Dmake18 FULL_O := $(shell readlink -f $(PERF_O) || echo $(PERF_O))
21 FULL_O := $(shell readlink -f $(O) || echo $(O))
32 …cores := $(shell (getconf _NPROCESSORS_ONLN || grep -E -c '^processor|^CPU[0-9]' /proc/cpuinfo) 2>…
64 has = $(shell which $1 2>/dev/null)
65 python_perf_so := $(shell $(MAKE) python_perf_target|grep "Target is:"|awk '{print $$3}')
129 new_libbfd := $(shell echo '#include <bfd.h>' | $(CC) -E -x c - | grep bfd_thread_init)
195 old_libbpf := $(shell echo '\#include <bpf/libbpf.h>' | $(CC) -E -dM -x c -| grep -q -E "define[[:s…
300 run := $(shell shuf -e $(run))
301 run_O := $(shell shuf -e $(run_O))
304 max_width := $(shell echo $(run_O) | sed 's/ /\n/g' | wc -L)
/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 …]
/linux/tools/build/feature/
H A DMakefile84 ifneq (, $(shell which $(CROSS_COMPILE)pkg-config))
168 LIBDW_VERSION := $(shell $(PKG_CONFIG) --modversion libdw).0.0
174 ifeq ($(shell test $(LIBDW_VERSION_2) -lt 177; echo $$?),0)
239 $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
242 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations
245 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
250 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
253 PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
345 -I$(shell $(LLVM_CONFIG) --includedir) \
346 -L$(shell $(LLVM_CONFIG) --libdir) \
[all …]
/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/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
50 # If user doesn't explicitly request shell try to avoid it.
51 if shell is None and isinstance(comm, str) and ' ' in comm:
69 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE,
145 def __init__(self, comm, shell=None, fail=None, ns=None, host=None,
148 shell=shell, fail=fail, ns=ns, host=host,
154 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/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/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…
87 LIBOPCODES_LIBS := $(shell \
99 HAVE_DISASM_STYLED := $(shell echo '$(pound)include <dis-asm.h>' | \
/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_…
170 FEATURE_CHECK_CFLAGS-$(1) := $(shell $(PKG_CONFIG) --cflags $(1) 2>/dev/null)
171 FEATURE_CHECK_LDFLAGS-$(1) := $(shell $(PKG_CONFIG) --libs $(1) 2>/dev/null)
232 MSG = $(shell printf '...%40s: [ \033[32mon\033[m ]' $(1))
234 MSG = $(shell printf '...%40s: [ \033[31mOFF\033[m ]' $(1))
240 MSG = $(shell printf '...%40s: %s' $(1) $(2))
250 FEATURE_DUMP := $(shell touch $(FEATURE_DUMP_FILENAME); cat $(FEATURE_DUMP_FILENAME))
277 $(shell rm -f $(FEATURE_DUMP_FILENAME))
278 …$(foreach feat,$(FEATURE_TESTS),$(shell echo "$(call feature_assign,$(feat))" >> $(FEATURE_DUMP_FI…
/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/drivers/net/hw/
H A Ddevmem.py15 cfg._devmem_supported = cmd(probe_command, fail=False, shell=True).ret == 0
33 head -c 1K | {socat}", host=cfg.remote, shell=True)
47 … -e \"hello\\nworld\"| {cfg.bin_local} -f {cfg.ifname} -s {cfg.remote_addr} -p {port}", shell=True)
61 …"hello\\nworld\"| {cfg.bin_local} -f {cfg.ifname} -s {cfg.remote_addr} -p {port} -z 3", shell=True)
78 host=cfg.remote, shell=True)
/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/
H A Dperf-security.rst168 privileged environment, naturally shell, is possible. The shell provides
175 1. Create shell script that uses capsh utility [16]_ to assign CAP_PERFMON
176 and other required capabilities into ambient capability set of the shell
184 # ls -alh /usr/local/bin/perf.shell
185 -rwxr-xr-x. 1 root root 83 Oct 13 23:57 /usr/local/bin/perf.shell
186 # cat /usr/local/bin/perf.shell
194 %perf_users ALL=/usr/local/bin/perf.shell
197 shell and have CAP_PERFMON and other required capabilities enabled
204 $ sudo perf.shell
270 (ulimit -n), which is usually derived from the login shell process. When
/linux/drivers/net/dsa/lantiq/
H A Dmxl-gsw1xx.c34 struct regmap *shell; member
144 /* Deassert SGMII shell reset */ in gsw1xx_pcs_enable()
145 return regmap_clear_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_enable()
155 /* Assert SGMII shell reset (will also clear RANEG bit) */ in gsw1xx_pcs_disable()
156 regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_disable()
245 /* Assert and deassert SGMII shell reset */ in gsw1xx_pcs_reset()
246 ret = regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_reset()
251 ret = regmap_clear_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_pcs_reset()
623 return regmap_update_bits(priv->shell, GSW1XX_SHELL_RGMII_SLEW_CFG, mask, mask * rate); in gsw1xx_rmii_slew_rate()
683 return regmap_set_bits(priv->shell, GSW1XX_SHELL_RST_REQ, in gsw1xx_serdes_pcs_init()
[all …]
/linux/Documentation/dev-tools/
H A Dcontainer.rst48 ``-s, --shell``
50 Run the container in an interactive shell.
85 ``--shell`` or ``-s`` option can be used. Signals will then be received by the
86 shell directly rather than the parent ``container`` process. To exit an
87 interactive shell, use Ctrl-D or ``exit``.
212 To run KUnit in an interactive shell and get the full output::
220 To just start an interactive shell::
/linux/tools/perf/pmu-events/
H A DBuild33 SRC_JSON := $(shell find $(SRC_DIR) -name '*.json' -o -name '*.csv')
35 SRC_JSON := $(shell find $(SRC_DIR)/common $(SRC_DIR)/test $(SRC_DIR)/$(JEVENTS_ARCH) -name '*.json…
50 model_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/extra-metric.*\.json@\1@')
51 vendor_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/[^/]*/extra-metric.*\.json@\1@')
55 ZENS = $(shell ls -d pmu-events/arch/x86/amdzen*)
72 ARMS = $(shell ls -d pmu-events/arch/arm64/arm/*|grep -v cmn)
89 INTELS = $(shell ls -d pmu-events/arch/x86/*|grep -v amdzen|grep -v mapfile.csv)
117 CUR_OUT_JSON := $(shell [ -d $(OUT_DIR) ] && find $(OUT_DIR) -type f)
/linux/Documentation/admin-guide/aoe/
H A Dexamples.rst11 :language: shell
17 :language: shell
23 :language: shell
/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>>...14