/openbmc/openbmc/poky/meta/files/ |
H A D | ext-sdk-prepare.py | 27 logdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tmp', 'log', 'cooker') 28 if os.path.exists(logdir): 31 logdir = os.path.join(logdir, mcdir[0]) 32 logfiles = [os.path.join(logdir, fn) for fn in os.listdir(logdir)] 33 logfiles.sort(key=os.path.getmtime) 35 return os.path.join(logdir, logfiles[-1]) 48 prserv = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'conf', 'prserv.inc') 49 if os.path.isfile(prserv):
|
/openbmc/phosphor-bmc-code-mgmt/ |
H A D | image_verify.hpp | 26 using PublicKeyPath = fs::path; 27 using HashFilePath = fs::path; 134 Signature(const fs::path& imageDirPath, const fs::path& signedConfPath); 185 bool verifyFile(const fs::path& file, const fs::path& signature, 186 const fs::path& publicKey, const std::string& hashFunc); 193 inline EVP_PKEY_Ptr createPublicRSA(const fs::path& publicKey); 201 CustomMap mapFile(const fs::path& path, size_t size); 211 fs::path imageDirPath; 214 fs::path signedConfPath;
|
H A D | item_updater.cpp | 57 std::string path(std::move(objPath)); in createActivation() local 125 auto pos = path.rfind("/"); in createActivation() 132 auto versionId = path.substr(pos + 1); in createActivation() 276 auto path = fs::path(SOFTWARE_OBJPATH) / id; in processBMCImage() local 719 auto flashId = it->second->path(); in updateUbootEnvVars() 835 fs::path file(filePath); in checkImage() 851 std::string path = BIOS_OBJPATH; in createBIOSObject() local 853 auto pos = path.rfind("/"); in createBIOSObject() 860 createActiveAssociation(path); in createBIOSObject() 861 createFunctionalAssociation(path); in createBIOSObject() [all …]
|
/openbmc/bmcweb/include/ |
H A D | dbus_utility.hpp | 106 inline void escapePathForDbus(std::string& path) in escapePathForDbus() argument 109 std::regex_replace(path.begin(), path.begin(), path.end(), reg, "_"); in escapePathForDbus() 130 std::filesystem::path p1(path); in getNthStringFromPath() 158 "xyz.openbmc_project.ObjectMapper", "GetObject", path, in checkDbusPathExists() 163 getSubTree(const std::string& path, int32_t depth, in getSubTree() argument 179 const std::string& path, int32_t depth, in getSubTreePaths() argument 210 associatedPath, path, depth, interfaces); in getAssociatedSubTree() 229 associatedPath, path, depth, interfaces); in getAssociatedSubTreePaths() 233 getDbusObject(const std::string& path, in getDbusObject() argument 249 const std::string& path, in getAssociationEndPoints() argument [all …]
|
/openbmc/u-boot/tools/patman/ |
H A D | tools.py | 56 if not os.path.isdir(outdir): 90 return os.path.join(outdir, fname) 123 pathname = os.path.join(dirname, fname) 124 if os.path.exists(pathname): 143 pathname = os.path.join(dirname, pattern) 166 if os.path.exists(os.path.join(dir, fname)): 202 fname = os.path.join(chroot_path, fname[3:]) 207 if fname and not os.path.exists(fname): 208 for path in search_paths: 209 pathname = os.path.join(path, os.path.basename(fname)) [all …]
|
/openbmc/phosphor-fan-presence/sensor-monitor/ |
H A D | alarm_timestamps.hpp | 181 std::filesystem::path path = in save() 182 std::filesystem::path{SENSOR_MONITOR_PERSIST_ROOT_PATH} / in save() 185 if (!std::filesystem::exists(path.parent_path())) in save() 187 std::filesystem::create_directory(path.parent_path()); in save() 200 std::ofstream stream{path.c_str()}; in save() 219 std::filesystem::path path = in load() 220 std::filesystem::path{SENSOR_MONITOR_PERSIST_ROOT_PATH} / in load() 223 if (!std::filesystem::exists(path)) in load() 230 std::ifstream stream{path.c_str()}; in load() 237 AlarmKey{path, static_cast<ShutdownType>(shutdownType), in load() [all …]
|
/openbmc/telemetry/tests/src/ |
H A D | test_report_manager.cpp | 154 auto [ec, path] = addReport( in TEST_F() 186 EXPECT_THAT(path, Eq("/ReportName")); in TEST_F() 248 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 261 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 274 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 294 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 307 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 320 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 334 EXPECT_THAT(path, Eq(std::string())); in TEST_F() 342 auto [ec, path] = addReport( in TEST_F() [all …]
|
/openbmc/phosphor-dbus-monitor/src/test/yaml/conditiongentest/ |
H A D | test.yaml | 3 - name: test path group 1 5 group: path 10 - name: test path group 2 12 group: path 40 paths: test path group 1 51 paths: test path group 1 62 paths: test path group 1 70 paths: test path group 1 81 paths: test path group 1 92 paths: test path group 1 [all …]
|
/openbmc/linux/fs/ |
H A D | fs_struct.c | 15 void set_fs_root(struct fs_struct *fs, const struct path *path) in set_fs_root() argument 17 struct path old_root; in set_fs_root() 19 path_get(path); in set_fs_root() 23 fs->root = *path; in set_fs_root() 34 void set_fs_pwd(struct fs_struct *fs, const struct path *path) in set_fs_pwd() argument 36 struct path old_pwd; in set_fs_pwd() 38 path_get(path); in set_fs_pwd() 42 fs->pwd = *path; in set_fs_pwd() 50 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() 58 void chroot_fs_refs(const struct path *old_root, const struct path *new_root) in chroot_fs_refs()
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | package.py | 90 def is_elf(path): argument 103 if path.endswith(".ko") and path.find("/lib/modules/") != -1 and is_kernel_module(path): 108 if path.endswith('.a') and not os.path.islink(path): 350 self.path = os.path.normpath(path) 361 self.path = os.path.normpath(path) 412 if mode and not os.path.islink(path): 514 ptarget = os.path.join(os.path.dirname(dir), link) 1321 path = "." + os.path.join(dir, f) 1322 if "/.debug/" in path or "/.debug-static/" in path or path.endswith("/.debug"): 1385 if not os.path.exists(os.path.join(root,file)): [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | testexport.bbclass | 75 import oe.path 84 oe.path.remove(export_path) 100 src = os.path.join(corebase_path, f) 102 if os.path.isdir(src): 103 oe.path.copytree(src, dst) 109 oe.path.remove(cases_path) 125 test_data_path = os.path.join(export_path, 'data') 133 shutil.rmtree(os.path.join(subdir, dir)) 143 oe.path.copytree(test_pkg_dir, export_pkg_dir) 169 dir_name = os.path.dirname(src_dir) [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | runtime_test.py | 42 isdir = os.path.isdir(testexport_dir) 47 test_path = os.path.join(testexport_dir, "oe-test") 49 manifest = os.path.join(testexport_dir, 'data', 'manifest') 92 self.assertEqual(os.path.isfile(tarball_path), True, msg) 296 import oe.path 304 hosttestdir = oe.path.join(rootfs, sysconfdir, "postinst-test") 305 targettestdir = os.path.join(sysconfdir, "postinst-test") 321 self.assertTrue(os.path.isfile(os.path.join(hosttestdir, "rootfs")), 386 import oe.path 405 self.assertTrue(os.path.isfile(os.path.join(hosttestdir, "rootfs-before-failure")), [all …]
|
/openbmc/linux/tools/virtio/virtio-trace/ |
H A D | README | 49 trace-path-cpu{0,1,2}.{in.out} 51 agent-ctl-path.{in,out}. 58 ##control path## 59 -chardev pipe,id=charchannel0,path=/tmp/virtio-trace/agent-ctl-path\ 61 id=channel0,name=agent-ctl-path\ 62 ##data path## 63 -chardev pipe,id=charchannel1,path=/tmp/virtio-trace/trace-path-cpu0\ 72 <source path='/tmp/virtio-trace/agent-ctl-path'/> 77 <source path='/tmp/virtio-trace/trace-path-cpu0'/> 82 Here, chardev names are restricted to trace-path-cpuX and agent-ctl-path. For [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | ctree.h | 398 struct btrfs_path *path; member 522 struct btrfs_path *path, 529 struct btrfs_path *path, 554 struct btrfs_path *path, 559 struct btrfs_path *path, 584 struct btrfs_path *path) in btrfs_del_item() argument 586 return btrfs_del_items(trans, root, path, path->slots[0], 1); in btrfs_del_item() 617 struct btrfs_path *path, 629 struct btrfs_path *path, in btrfs_insert_empty_item() argument 647 struct btrfs_path *path); [all …]
|
/openbmc/phosphor-led-sysfs/ |
H A D | sysfs.cpp | 30 T getSysfsAttr(const fs::path& path); 33 std::string getSysfsAttr(const fs::path& path) in getSysfsAttr() argument 36 std::ifstream file(path); in getSysfsAttr() 42 unsigned long getSysfsAttr(const fs::path& path) in getSysfsAttr() argument 44 std::string content = getSysfsAttr<std::string>(path); in getSysfsAttr() 49 void setSysfsAttr(const fs::path& path, const T& value) in setSysfsAttr() argument 51 std::ofstream file(path); in setSysfsAttr()
|
/openbmc/telemetry/src/ |
H A D | persistent_json_storage.hpp | 12 bool exist(const FilePath& path) const override; 19 static std::filesystem::path join(const std::filesystem::path&, 20 const std::filesystem::path&); 21 static void limitPermissions(const std::filesystem::path& path); 22 static void assertThatPathIsNotSymlink(const std::filesystem::path& path);
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/tests/ |
H A D | common.py | 22 directory = os.path.dirname(os.path.abspath(__file__)) 23 oeqa_lib = os.path.realpath(os.path.join(directory, '../../../')) 24 if not oeqa_lib in sys.path: 25 sys.path.insert(0, oeqa_lib) 30 directory = os.path.dirname(os.path.abspath(__file__)) 31 self.cases_path = os.path.join(directory, 'cases')
|
/openbmc/webui-vue/src/store/ |
H A D | api.js | 50 get(path, config) { 51 return api.get(path, config); 53 delete(path, config) { 54 return api.delete(path, config); 56 post(path, payload, config) { 57 return api.post(path, payload, config); 59 patch(path, payload, config) { 60 return api.patch(path, payload, config); 62 put(path, payload, config) { 63 return api.put(path, payload, config);
|
/openbmc/phosphor-snmp/test/ |
H A D | test_snmp_serialize.cpp | 51 auto path = serialize(1, client, manager.dbusPersistentLocation); in TEST_F() local 54 deserialize(path, restoreClient); in TEST_F() 66 fs::path path = manager.dbusPersistentLocation; in TEST_F() local 67 path /= "1"; in TEST_F() 69 auto ret = deserialize(path, client); in TEST_F() 83 fs::path path = manager.dbusPersistentLocation; in TEST_F() local 84 path /= "1"; in TEST_F() 86 file.open(path.string(), std::ofstream::out); in TEST_F() 89 auto ret = deserialize(path, restoreClient); in TEST_F()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | tmpd.hpp | 38 root = fs::path{tmpdir}; in VpnorRoot() 45 fs::path tocFilePath = root / "ro" / PARTITION_TOC_FILE; in VpnorRoot() 90 fs::path ro() in ro() 92 return fs::path{root} / "ro"; in ro() 94 fs::path rw() in rw() 96 return fs::path{root} / "rw"; in rw() 98 fs::path prsv() in prsv() 100 return fs::path{root} / "prsv"; in prsv() 102 fs::path patch() in patch() 104 return fs::path{root} / "patch"; in patch() [all …]
|
/openbmc/linux/tools/verification/dot2/ |
H A D | dot2k.py | 42 if os.path.exists(kernel_path) == True: 53 def __open_file(self, path): argument 55 fd = open(path) 149 path = "%s/%s" % (self.name, file_name) 151 file = open(path, 'w') 162 path = "%s/%s" % (self.name, "main.c") 163 if os.path.exists(path) == False: 173 path = "%s.c" % self.name 174 self.__create_file(path, main_c) 176 path = "%s.h" % self.name [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | oe-setup-layers | 50 return os.path.exists(os.path.join(repodir,".gitmodules")) 56 if os.path.basename(root) == 'conf' and 'layer.conf' in files: 57 layers.append(os.path.relpath(os.path.dirname(root), dest)) 58 layers_f = os.path.join(dest, ".oe-layers.json") 69 repodir = os.path.abspath(os.path.join(args['destdir'], r_data['path'])) 112 if os.path.exists(os.path.join(repodir, 'scripts/oe-setup-build')): 113 oesetupbuild = os.path.join(repodir, 'scripts/oe-setup-build') 118 oesetupbuild_symlink = os.path.join(args['destdir'], 'setup-build') 119 if os.path.exists(oesetupbuild_symlink): 130 …defaultdest = os.path.dirname(subprocess.check_output('git rev-parse --show-toplevel', universal_n… [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-ps-queue-length.c | 38 struct dm_path *path; member 87 static int ql_status(struct path_selector *ps, struct dm_path *path, in ql_status() argument 94 if (!path) in ql_status() 97 pi = path->pscontext; in ql_status() 151 pi->path = path; in ql_add_path() 155 path->pscontext = pi; in ql_add_path() 167 struct path_info *pi = path->pscontext; in ql_fail_path() 178 struct path_info *pi = path->pscontext; in ql_reinstate_path() 217 ret = best->path; in ql_select_path() 226 struct path_info *pi = path->pscontext; in ql_start_io() [all …]
|
/openbmc/openpower-occ-control/ |
H A D | occ_status.hpp | 99 Interface(utils::getBus(), getDbusPath(path).c_str(), in Status() 101 path(path), managerCallBack(callBack), instance(getInstance(path)), in Status() 108 fs::path(DEV_PATH) / i2c_occ::getI2cDeviceName(path), in Status() 110 fs::path(DEV_PATH) / in Status() 127 occCmd(instance, (fs::path(OCC_CONTROL_ROOT) / in Status() 241 fs::path getHwmonPath(); 265 std::string path; member in open_power::occ::Status 321 fs::path hwmonPath; 340 static int getInstance(const std::string& path) in getInstance() argument 342 return (path.empty() ? 0 : path.back() - '0'); in getInstance() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_hierarchical_stats.c | 48 #define CGROUP_PATH(p, n) {.path = p"/"n, .name = n} 51 const char *path, *name; member 75 fd = open(path, O_RDONLY); in read_from_file() 133 fd = create_and_get_cgroup(cgroups[i].path); in setup_cgroups() 138 cgroups[i].id = get_cgroup_id(cgroups[i].path); in setup_cgroups() 175 if (join_parent_cgroup(cgroups[i].path)) in attach_processes() 196 static char buf[128], path[128]; in get_attach_counter() local 252 static char path[128]; in setup_cgroup_iter() local 269 err = bpf_link__pin(link, path); in setup_cgroup_iter() 308 static char path[128]; in destroy_progs() local [all …]
|