/linux/tools/perf/util/ |
H A D | stat-display.c | 144 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, ru in print_running() 192 print_noise_pct_json(struct outstate * os,double pct) print_noise_pct_json() argument 198 print_noise_pct(struct perf_stat_config * config,struct outstate * os,double total,double avg,bool before_metric) print_noise_pct() argument 215 print_noise(struct perf_stat_config * config,struct outstate * os,struct evsel * evsel,double avg,bool before_metric) print_noise() argument 237 print_cgroup_json(struct outstate * os,const char * cgrp_name) print_cgroup_json() argument 242 print_cgroup(struct perf_stat_config * config,struct outstate * os,struct cgroup * cgrp) print_cgroup() argument 364 print_aggr_id_json(struct perf_stat_config * config,struct outstate * os,struct evsel * evsel,struct aggr_cpu_id id,int aggr_nr) print_aggr_id_json() argument 414 aggr_printout(struct perf_stat_config * config,struct outstate * os,struct evsel * evsel,struct aggr_cpu_id id,int aggr_nr) aggr_printout() argument 428 struct outstate *os = ctx; new_line_std() local 434 __new_line_std_csv(struct perf_stat_config * config,struct outstate * os) __new_line_std_csv() argument 442 __new_line_std(struct outstate * os) __new_line_std() argument 448 do_new_line_std(struct perf_stat_config * config,struct outstate * os) do_new_line_std() argument 460 struct outstate *os = ctx; print_metric_std() local 486 struct outstate *os = ctx; new_line_csv() local 499 struct outstate *os = ctx; print_metric_csv() local 521 struct outstate *os = ctx; print_metric_json() local 537 struct outstate *os = ctx; new_line_json() local 562 struct outstate *os = ctx; print_metricgroup_header_csv() local 582 struct outstate *os = ctx; print_metricgroup_header_std() local 622 struct outstate *os = ctx; print_metric_only() local 648 struct outstate *os = ctx; print_metric_only_csv() local 671 struct outstate *os = ctx; print_metric_only_json() local 697 struct outstate *os = ctx; print_metric_header() local 764 print_counter_value_json(struct outstate * os,struct evsel * evsel,double avg,bool ok) print_counter_value_json() argument 780 print_counter_value(struct perf_stat_config * config,struct outstate * os,struct evsel * evsel,double avg,bool ok) print_counter_value() argument 792 abs_printout(struct perf_stat_config * config,struct outstate * os,struct aggr_cpu_id id,int aggr_nr,struct evsel * evsel,double avg,bool ok) abs_printout() argument 828 printout(struct perf_stat_config * config,struct outstate * os,double uval,u64 run,u64 ena,double noise,int aggr_idx) printout() argument 988 print_counter_aggrdata(struct perf_stat_config * config,struct evsel * counter,int aggr_idx,struct outstate * os) print_counter_aggrdata() argument 1049 print_metric_begin(struct perf_stat_config * config,struct evlist * evlist,struct outstate * os,int aggr_idx) print_metric_begin() argument 1076 print_metric_end(struct perf_stat_config * config,struct outstate * os) print_metric_end() argument 1093 print_aggr(struct perf_stat_config * config,struct evlist * evlist,struct outstate * os) print_aggr() argument 1117 print_aggr_cgroup(struct perf_stat_config * config,struct evlist * evlist,struct outstate * os) print_aggr_cgroup() argument 1146 print_counter(struct perf_stat_config * config,struct evsel * counter,struct outstate * os) print_counter() argument 1161 print_no_aggr_metric(struct perf_stat_config * config,struct evlist * evlist,struct outstate * os) print_no_aggr_metric() argument 1246 struct outstate os = { print_metric_headers() local 1285 prepare_timestamp(struct perf_stat_config * config,struct outstate * os,struct timespec * ts) prepare_timestamp() argument 1518 print_percore(struct perf_stat_config * config,struct evsel * counter,struct outstate * os) print_percore() argument 1566 print_cgroup_counter(struct perf_stat_config * config,struct evlist * evlist,struct outstate * os) print_cgroup_counter() argument 1591 struct outstate os = { evlist__print_counters() local [all...] |
/linux/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 3 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 [all...] |
/linux/scripts/ |
H A D | jobserver-exec | 10 import os, sys, errno 18 flags = os.environ['MAKEFLAGS'] 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 36 writer = os.open(path, os.O_WRONLY) 41 reader = os.open("/proc/self/fd/%d" % (reader), 42 os.O_RDONLY | os [all...] |
H A D | checktransupdate.py | 26 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 [all...] |
/linux/drivers/block/drbd/ |
H A D | drbd_state.c | 25 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, 464 * @os: old (current) state. 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 in cl_wide_st_chg() 481 apply_mask_val(union drbd_state os,union drbd_state mask,union drbd_state val) apply_mask_val() argument 520 union drbd_state os, ns; _req_st_cond() local 568 union drbd_state os, ns; drbd_req_state() local 733 print_st_err(struct drbd_device * device,union drbd_state os,union drbd_state ns,enum drbd_state_rv err) print_st_err() argument 743 print_state_change(char * pb,union drbd_state os,union drbd_state ns,enum chg_state_flags flags) print_state_change() argument 774 drbd_pr_state_change(struct drbd_device * device,union drbd_state os,union drbd_state ns,enum chg_state_flags flags) drbd_pr_state_change() argument 799 conn_pr_state_change(struct drbd_connection * connection,union drbd_state os,union drbd_state ns,enum chg_state_flags flags) conn_pr_state_change() argument 912 is_valid_soft_transition(union drbd_state os,union drbd_state ns,struct drbd_connection * connection) is_valid_soft_transition() argument 1014 is_valid_transition(union drbd_state os,union drbd_state ns) is_valid_transition() argument 1052 sanitize_state(struct drbd_device * device,union drbd_state os,union drbd_state ns,enum sanitize_state_warnings * warn) sanitize_state() argument 1268 union drbd_state os; _drbd_set_state() local 1681 lost_contact_to_peer_data(enum drbd_disk_state os,enum drbd_disk_state ns) lost_contact_to_peer_data() argument 1708 after_state_ch(struct drbd_device * device,union drbd_state os,union drbd_state ns,enum chg_state_flags flags,struct drbd_state_change * state_change) after_state_ch() argument 2118 union drbd_dev_state os, cs = { conn_old_common_state() local 2164 union drbd_state ns, os; conn_is_valid_transition() local 2206 union drbd_state ns, os, ns_max = { }; conn_set_state() local 2299 union drbd_state ns_max, ns_min, os; _conn_request_state() local [all...] |
/linux/tools/testing/selftests/devices/probe/ |
H A D | test_discoverable_devices.py | 19 import os 25 this_dir = os.path.dirname(os.path.realpath(__file__)) 26 sys.path.append(os.path.join(this_dir, "../../kselftest/")) 41 for path, dirs, _ in os.walk(sysfs_devices): 44 pci_controllers.append(os.path.join(path, d)) 51 for d in os.scandir(sysfs_usb_devices): 53 usb_controllers.append(os.path.realpath(d.path)) 64 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 69 sysfs_dev_dir = os [all...] |
/linux/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 9 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 [all...] |
/linux/drivers/net/fddi/skfp/ |
H A D | hwmtm.c | 263 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 in init_fddi_driver() [all...] |
H A D | skfddi.c | 265 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 in skfp_init_one() [all...] |
/linux/Documentation/translations/zh_CN/security/tpm/ |
H A D | xen-tpmfront.rst | 29 这个mini-os vTPM 子系统是建立在IBM和Intel公司之前的vTPM工作基础上的。 46 | mini-os/tpmback | 52 | mini-os/tpmfront | 57 | mini-os/tpmback | 63 | mini-os/tpm_tis | 78 * mini-os/tpmback: 79 Mini-os TPM后端驱动程序。Linux前端驱动程序通过该后端驱动程序连 88 * mini-os/tpmfront: 89 Mini-os TPM前端驱动程序。vTPM mini-os域vtpm-stubdom使用该驱动程序 98 * mini-os/tpm_ti [all...] |
/linux/tools/testing/selftests/bpf/ |
H A D | test_bpftool_synctypes.py | 8 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 [all...] |
H A D | test_bpftool.py | 7 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 D | amd_pstate_trace.py | 24 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/tools/testing/selftests/tc-testing/ |
H A D | tdc_config_local_template.py | 7 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/drivers/gpu/drm/ci/ |
H A D | check-patch.py | 11 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_NAME"]], 29 "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"], 50 "--types", os.environ["CHECKPATCH_TYPES"],
|
/linux/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 13 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 [all...] |
/linux/tools/testing/kunit/ |
H A D | kunit_kernel.py | 13 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/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 29 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 [all...] |
/linux/drivers/scsi/elx/efct/ |
H A D | efct_hw.c | 50 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, " in efct_hw_cb_link() 230 efct_hw_setup(struct efct_hw * hw,void * os,struct pci_dev * pdev) efct_hw_setup() argument [all...] |
/linux/drivers/comedi/drivers/ni_routing/tools/ |
H A D | convert_csv_to_c.py | 7 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 [all...] |
/linux/tools/verification/rvgen/rvgen/ |
H A D | generator.py | 9 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 [all...] |
/linux/Documentation/security/tpm/ |
H A D | xen-tpmfront.rst | 24 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/tpmfron [all...] |
/linux/scripts/kconfig/tests/ |
H A D | conftest.py | 12 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)) 94 with open(os.path.join(temp_dir, out_file)) as f: 154 defconfig_path = os.path.join(self._test_dir, defconfig) 159 all_config_path = os [all...] |
/linux/tools/testing/selftests/x86/bugs/ |
H A D | its_ret_alignment.py | 22 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') 51 vmlinux = f"/usr/lib/debug/lib/modules/{os [all...] |
/linux/Documentation/sphinx/ |
H A D | load_config.py | 5 import os 20 config_file = os.environ.get("SPHINX_CONF", None) 22 and os.path.normpath(namespace["__file__"]) != os.path.normpath(config_file) ): 23 config_file = os.path.abspath(config_file) 48 if os.path.isfile(config_file):
|