Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 246) sorted by relevance

12345678910

/linux/tools/perf/util/
H A Dstat-display.c144 static const char *json_sep(struct outstate *os) in json_sep() argument
146 const char *sep = os->first ? "" : ", "; in json_sep()
148 os->first = false; in json_sep()
152 #define json_out(os, format, ...) fprintf((os)->fh, "%s" format, json_sep(os), ##__VA_ARGS__) argument
154 static void print_running_json(struct outstate *os, u64 run, u64 ena) in print_running_json() argument
160 json_out(os, "\"event-runtime\" : %" PRIu64 ", \"pcnt-running\" : %.2f", in print_running_json()
164 static void print_running(struct perf_stat_config *config, struct outstate *os, in print_running() argument
169 print_running_json(os, run, ena); in print_running()
192 static void print_noise_pct_json(struct outstate *os, in print_noise_pct_json() argument
195 json_out(os, "\"variance\" : %.2f", pct); in print_noise_pct_json()
[all …]
/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py3 import os
18 if not os.path.exists(sysfs_root):
60 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern')
64 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0])
68 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1])
71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
75 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
80 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0])
84 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1])
108 return os.path.join(self.quota.sysfs_dir(), 'goals', '%d' % self.idx)
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_state.c25 union drbd_state os; member
280 static void after_state_ch(struct drbd_device *device, union drbd_state os,
285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns);
286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os,
468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg()
472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg()
473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg()
474 (os.disk != D_FAILED && ns.disk == D_FAILED))) || in cl_wide_st_chg()
[all …]
/linux/tools/docs/
H A Dsphinx-build-wrapper49 import os
61 SRC_DIR = os.path.dirname(os.path.realpath(__file__))
63 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR))
108 path = os.path.expanduser(path)
111 base = os.getcwd()
115 path = os.path.join(base, path)
118 return os.path.abspath(path)
128 config = os.path.join(self.srctree, ".config")
130 if not os.path.isfile(config):
173 sphinxopts = shlex.split(os.environ.get("SPHINXOPTS", ""))
[all …]
H A Dchecktransupdate.py26 import os
47 pipe = os.popen(command)
109 pipe = os.popen(command)
120 pipe = os.popen(command)
133 if not os.path.isfile(opath):
170 script_path = os.path.dirname(os.path.abspath(__file__))
171 linux_path = os.path.join(script_path, "../..")
172 if not os.path.isdir(f"{linux_path}/Documentation/translations/{locale}"):
185 if os.path.basename(pwd) in exclude_folders:
188 for item in os.listdir(pwd):
[all …]
/linux/drivers/net/fddi/skfp/
H A Dhwmtm.c263 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init()
273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init()
276 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init()
356 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring()
393 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring()
426 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver()
427 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver()
449 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver()
450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver()
451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver()
[all …]
H A Dskfddi.c265 smc->os.dev = dev; in skfp_init_one()
266 smc->os.bus_type = SK_BUS_TYPE_PCI; in skfp_init_one()
267 smc->os.pdev = *pdev; in skfp_init_one()
268 smc->os.QueueSkb = MAX_TX_QUEUE_LEN; in skfp_init_one()
269 smc->os.MaxFrameSize = MAX_FRAME_SIZE; in skfp_init_one()
270 smc->os.dev = dev; in skfp_init_one()
273 smc->os.ResetRequested = FALSE; in skfp_init_one()
274 skb_queue_head_init(&smc->os.SendSkbQueue); in skfp_init_one()
299 if (smc->os.SharedMemAddr) in skfp_init_one()
300 dma_free_coherent(&pdev->dev, smc->os.SharedMemSize, in skfp_init_one()
[all …]
/linux/Documentation/
H A Dconf.py8 import os
19 sys.path.insert(0, os.path.abspath("sphinx"))
36 doctree = os.path.abspath(".")
73 full = os.path.join(doctree, p)
75 rel_path = os.path.relpath(full, start=app.srcdir)
83 full = os.path.join(doctree, p)
85 rel_path = os.path.relpath(full, start=app.srcdir)
95 if not os.path.samefile(doctree, app.srcdir):
100 doc = os.path.basename(app.srcdir)
102 if os.path.exists(os.path.join(app.srcdir, fname + ".rst")):
[all …]
/linux/tools/testing/selftests/drivers/sdsi/
H A Dsdsi_test.py9 import os
38 return os.path.isfile(kmemleak)
59 assert os.path.isfile(folder + "guid") == True
60 assert os.path.isfile(folder + "provision_akc") == True
61 assert os.path.isfile(folder + "provision_cap") == True
62 assert os.path.isfile(folder + "state_certificate") == True
63 assert os.path.isfile(folder + "registers") == True
67 mode = os.stat(folder + "guid").st_mode & 0o777
69 mode = os.stat(folder + "registers").st_mode & 0o777
71 mode = os.stat(folder + "provision_akc").st_mode & 0o777
[all …]
/linux/tools/lib/python/
H A Djobserver.py34 import os
64 flags = os.environ["MAKEFLAGS"]
81 self.reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK)
82 self.writer = os.open(path, os.O_WRONLY)
87 self.reader = os.open("/proc/self/fd/%d" % (self.reader),
88 os.O_RDONLY | os.O_NONBLOCK)
93 slot = os.read(self.reader, 8)
101 os.write(self.writer, self.jobs)
123 os.write(self.writer, self.jobs)
147 os.environ["PARALLELISM"] = str(self.claim)
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py8 import os, sys
10 LINUX_ROOT = os.path.abspath(os.path.join(__file__,
11 os.pardir, os.pardir, os.pardir, os.pardir, os.pardir))
12 BPFTOOL_DIR = os.getenv('BPFTOOL_DIR',
13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool'))
14 BPFTOOL_BASHCOMP_DIR = os.getenv('BPFTOOL_BASHCOMP_DIR',
15 os.path.join(BPFTOOL_DIR, 'bash-completion'))
16 BPFTOOL_DOC_DIR = os.getenv('BPFTOOL_DOC_DIR',
17 os.path.join(BPFTOOL_DIR, 'Documentation'))
18 INCLUDE_DIR = os.getenv('INCLUDE_DIR',
[all …]
H A Dtest_bpftool.py7 import os
14 cur_dir = os.path.dirname(os.path.realpath(__file__))
15 bpftool_dir = os.path.abspath(os.path.join(cur_dir, "..", "..", "..", "..",
17 os.environ["PATH"] = bpftool_dir + ":/usr/local/sbin:" + os.environ["PATH"]
69 if os.getuid() != 0:
/linux/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py24 import os
33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "intel_pstate_tracer"))
68 if os.path.exists(file_name):
85 if os.path.exists(file_name):
100 if os.path.exists(file_name):
178 if os.path.exists('cpu.csv'):
179 os.remove('cpu.csv')
277 location = os.path.realpath(os
[all...]
/linux/drivers/scsi/elx/efct/
H A Defct_hw.c50 struct efct *efct = hw->os; in efct_hw_read_max_dump_size()
66 efc_log_debug(hw->os, "set dump location cmd failed\n"); in efct_hw_read_max_dump_size()
73 efc_log_debug(hw->os, "Dump size %x\n", hw->dump_size); in efct_hw_read_max_dump_size()
85 struct efct *efct = hw->os; in __efct_read_topology_cb()
88 efc_log_debug(hw->os, "bad status cqe=%#x mqe=%#x\n", status, in __efct_read_topology_cb()
170 struct efct *efct = hw->os; in efct_hw_cb_link()
183 efc_log_info(hw->os, "Link Up, NPORT, speed is %d\n", in efct_hw_cb_link()
193 efc_log_info(hw->os, "Link Up, LOOP, speed is %d\n", in efct_hw_cb_link()
203 efc_log_debug(hw->os, "READ_TOPOLOGY failed\n"); in efct_hw_cb_link()
205 efc_log_info(hw->os, "%s(%#x), speed is %d\n", in efct_hw_cb_link()
[all …]
/linux/Documentation/sphinx/
H A Dkernel_include.py86 import os.path
99 srctree = os.path.abspath(os.environ["srctree"])
100 sys.path.insert(0, os.path.join(srctree, "tools/lib/python"))
221 source_dir = os.path.dirname(os.path.abspath(
224 exceptions_file = os.path.join(source_dir, self.options['exception-file'])
254 relpath = os.path.relpath(path, srctree)
341 srctree = os.path.abspath(os.environ["srctree"])
343 path = os.path.expandvars(self.arguments[0])
344 src_path = os.path.join(srctree, path)
346 if os.path.isfile(src_path):
[all …]
/linux/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py29 import os
104 if os.path.exists(file_name):
125 if os.path.exists(file_name):
144 if os.path.exists(file_name):
159 if os.path.exists(file_name):
174 if os.path.exists('cpu.csv'):
348 if os.path.exists('cpu.csv'):
351 os.system('grep -m 1 common_cpu cpu.csv > cpu{:0>3}.csv'.format(index))
352 os.system('grep CPU_{:0>3} cpu.csv >> cpu{:0>3}.csv'.format(index, index))
357 uid = os.environ.get('SUDO_UID')
[all …]
/linux/tools/testing/kunit/
H A Dkunit_kernel.py13 import os
32 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
33 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
121 kernel_path = os.path.join(build_dir, self._kernel_path)
154 linux_bin = os.path.join(build_dir, 'linux')
164 return os.path.join(build_dir, KCONFIG_PATH)
167 return os.path.join(build_dir, KUNITCONFIG_PATH)
170 return os.path.join(build_dir, OLD_KUNITCONFIG_PATH)
176 if not os
[all...]
/linux/scripts/clang-tools/
H A Dgen_compile_commands.py13 import os
67 os.path.realpath(args.directory),
86 exclude_dirs = [ os.path.join(directory, d) for d in _EXCLUDE_DIRS ]
88 for dirpath, dirnames, filenames in os.walk(directory, topdown=True):
96 yield os.path.join(dirpath, filename)
108 dir, base = os.path.split(path)
109 return os.path.join(dir, '.' + base + '.cmd')
142 base, ext = os.path.splitext(obj)
176 abs_path = os.path.realpath(os.path.join(root_directory, file_path))
177 if not os.path.exists(abs_path):
[all …]
/linux/drivers/comedi/drivers/ni_routing/tools/
H A Dconvert_csv_to_c.py7 import os, sys, re
152 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H))
241 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S))
258 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f:
262 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f:
268 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H)
269 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f:
278 filename=os.path.join(self.OUTPUT_DIR, self.SET_C)
281 os.makedirs(os.path.join(self.OUTPUT_DIR, self.ITEMS_DIR))
331 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H))
[all …]
/linux/drivers/gpu/drm/ci/
H A Dcheck-patch.py11 import os
12 import os.path
16 repourl = "https://gitlab.freedesktop.org/%s.git" % os.environ["CI_MERGE_REQUEST_PROJECT_PATH"]
21 os.environ["GIT_DEPTH"] = "1000"
24 subprocess.check_call(["git", "fetch", "check-patch", os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NA…
29 … "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"],
50 "--types", os.environ["CHECKPATCH_TYPES"],
/linux/tools/testing/selftests/tc-testing/
H A Dtdc_config_local_template.py7 import os
9 ENVIR = os.environ.copy()
11 ENV_LD_LIBRARY_PATH = os.getenv('LD_LIBRARY_PATH', '')
12 ENV_OTHER_LIB = os.getenv('OTHER_LIB', '')
17 EXTRA_NAMES['SOME_BIN'] = os.path.join(os.getenv('OTHER_BIN', ''), 'some_bin')
/linux/tools/verification/rvgen/rvgen/
H A Dgenerator.py9 import os
19 os.path.join(os.path.dirname(__file__), "templates", self.template_dir)
30 if os.path.exists(self.rv_dir):
34 kernel_path = os.path.join("../..", self.rv_dir)
36 if os.path.exists(kernel_path):
43 kernel_path = os.path.join("/lib/modules/%s/build" % platform.release(), self.rv_dir)
47 if os.path.exists(os.path.join(kernel_path, "rv_trace.h")):
66 path = os.path.join(self.abs_template_dir, file)
71 path = os.path.join(self.abs_template_dir, "..", file)
142 file_to_patch = os.path.join(self.rv_dir, file)
[all …]
/linux/Documentation/security/tpm/
H A Dxen-tpmfront.rst24 mini-os to reduce memory and processor overhead.
26 This mini-os vTPM subsystem was built on top of the previous vTPM work done by
44 | mini-os/tpmback |
50 | mini-os/tpmfront |
55 | mini-os/tpmback |
61 | mini-os/tpm_tis |
77 * mini-os/tpmback:
78 Mini-os TPM backend driver. The Linux frontend driver
84 A mini-os stub domain that implements a vTPM. There is a
89 * mini-os/tpmfront:
[all …]
/linux/scripts/kconfig/tests/
H A Dconftest.py12 import os
18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf'))
36 self._test_dir = os.path.dirname(str(request.fspath))
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
67 os.path.join(temp_dir, '.config'))
74 env=dict(os.environ, **extra_env))
109 with open(os.path.join(temp_dir, out_file)) as f:
169 defconfig_path = os.path.join(self._test_dir, defconfig)
174 all_config_path = os.path.join(self._test_dir, all_config)
249 with open(os.path.join(self._test_dir, expected)) as f:
/linux/tools/testing/selftests/x86/bugs/
H A Dits_ret_alignment.py22 import os, sys, argparse
25 this_dir = os.path.dirname(os.path.realpath(__file__))
43 if len(os.sys.argv) > 1:
44 arg_vmlinux = os.sys.argv[1]
45 if not os.path.exists(arg_vmlinux):
48 os.makedirs(f"/usr/lib/debug/lib/modules/{os.uname().release}", exist_ok=True)
49 os.system(f'cp {arg_vmlinux} /usr/lib/debug/lib/modules/$(uname -r)/vmlinux')
52 if not os.path.exists(vmlinux):

12345678910