Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 66) sorted by relevance

123

/openbmc/openbmc-tools/rootfs_size/
H A Drootfs_size.py58 def get_unsquash_results(filepath): argument
67 file_to_remove = os.path.join(input_path, filepath)
85 filepath.replace(squashfsdir, ""),
101 filepath = os.path.join(root, name) variable
102 if not os.path.islink(filepath):
103 if getsize(filepath) > FILE_SIZE_LIMIT:
105 os.path.relpath(filepath, squashfsdir)
123 for filepath, size in results:
124 result = "{:>10}: {}".format(size, filepath)
/openbmc/linux/tools/testing/selftests/cpufreq/
H A Dspecial-tests.sh88 local filepath="$CPUROOT/$1/cpufreq"
98 local freqs=$(cat $filepath/scaling_available_frequencies)
99 local oldfreq=$(cat $filepath/scaling_min_freq)
105 echo $freq > $filepath/scaling_min_freq
110 echo $oldfreq > $filepath/scaling_min_freq
H A Dgovernor.sh87 local filepath=$CPUFREQROOT/$1/scaling_available_governors
90 local found=$(cat $filepath | grep $2 | wc -l)
126 local filepath=$CPUFREQROOT/$2/scaling_available_governors
129 if [ ! -f $filepath ]; then
135 local governors=$(cat $filepath)
/openbmc/linux/tools/thermal/tmon/
H A Dsysfs.c37 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_set_ulong() local
39 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_set_ulong()
41 fd = fopen(filepath, "w"); in sysfs_set_ulong()
43 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_set_ulong()
61 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_get_ulong() local
63 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_ulong()
65 fd = fopen(filepath, "r"); in sysfs_get_ulong()
67 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_get_ulong()
80 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_get_string() local
82 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_string()
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/
H A Dmbox.py18 def __init__(self, filepath): argument
19 self.handle = open(filepath, 'rb')
54 def __init__(self, filepath): argument
55 with MboxReader(filepath) as mbox:
60 self.path = filepath
/openbmc/qemu/tests/qemu-iotests/
H A D25640 def create_target(filepath, name, size): argument
41 basename = os.path.basename(filepath)
46 'filename': filepath,
51 node_name=nodename, filename=filepath))
H A D257199 def blockdev_backup_mktarget(drive, target_id, filepath, sync, **kwargs): argument
200 target_drive = Drive(filepath, vm=drive.vm)
204 def reference_backup(drive, n, filepath): argument
208 blockdev_backup_mktarget(drive, target_id, filepath, "full",
213 def backup(drive, n, filepath, sync, **kwargs): argument
218 blockdev_backup_mktarget(drive, target_id, filepath, sync,
/openbmc/bmcweb/include/
H A Dssl_key_handler.hpp30 std::string verifyOpensslKeyCert(const std::string& filepath);
38 void writeCertificateToFile(const std::string& filepath,
41 std::string ensureOpensslKeyPresentAndValid(const std::string& filepath);
H A Dimage_upload.hpp110 std::string filepath("/tmp/images/" + bmcweb::getRandomUUID()); in uploadImageHandler() local
111 BMCWEB_LOG_DEBUG("Writing file to {}", filepath); in uploadImageHandler()
112 std::ofstream out(filepath, std::ofstream::out | std::ofstream::binary | in uploadImageHandler()
/openbmc/bmcweb/scripts/
H A Dgenerate_schema_enums.py145 filepath = os.path.join(root, csdl_file)
146 if os.path.islink(filepath):
149 filepaths.append(filepath)
153 for filepath in filepaths:
154 out = parse_file(filepath)
/openbmc/openbmc/poky/bitbake/lib/toaster/toastermain/
H A Dsettings.py85 filepath = os.path.join(dirpath, fn) variable
86 zonename = filepath.lstrip(ZONEINFOPATH).strip()
92 with open(filepath, 'rb') as f:
98 with open(filepath, 'rb') as f:
/openbmc/openbmc/poky/scripts/lib/recipetool/
H A Dappend.py415 def existing_path(filepath): argument
416 if not os.path.exists(filepath):
417 raise argparse.ArgumentTypeError('{0!r} must be an existing path'.format(filepath))
418 return filepath
421 def existing_file(filepath): argument
422 filepath = existing_path(filepath)
423 if os.path.isdir(filepath):
424 raise argparse.ArgumentTypeError('{0!r} must be a file, not a directory'.format(filepath))
425 return filepath
/openbmc/openbmc/poky/meta/lib/oe/
H A Dreproducible.py66 filepath = os.path.join(sourcedir, file)
67 if os.path.isfile(filepath):
68 mtime = int(os.lstat(filepath).st_mtime)
72 newest_file = filepath
H A Drootfspostcommands.py79 filepath = os.path.join(sysconfdir, filename)
80 remove_shadowutils_backup_file(filepath)
H A Dspdx30_tasks.py157 filepath = Path(subdir) / file
158 if filepath.is_symlink() or not filepath.is_file():
161 filename = str(filepath.relative_to(topdir))
162 file_purposes = get_purposes(filepath)
167 filepath,
176 objset.scan_declared_licenses(spdx_file, filepath, license_data)
179 with filepath.open("rb") as f:
545 lambda filepath: [oe.spdx30.software_SoftwarePurpose.source],
730 lambda filepath: [],
762 lambda filepath: [],
[all …]
/openbmc/openbmc-test-automation/bin/
H A Drun_robot_pgm_jenk.sh21 for filepath in $pathlist ; do source $filepath || exit 1 ; done
/openbmc/bmcweb/src/
H A Dssl_key_handler.cpp134 std::string verifyOpensslKeyCert(const std::string& filepath) in verifyOpensslKeyCert() argument
138 BMCWEB_LOG_INFO("Checking certs in file {}", filepath); in verifyOpensslKeyCert()
141 file.open(filepath.c_str(), boost::beast::file_mode::read, ec); in verifyOpensslKeyCert()
257 void writeCertificateToFile(const std::string& filepath, in writeCertificateToFile() argument
262 file.open(filepath.c_str(), boost::beast::file_mode::write, ec); in writeCertificateToFile()
417 std::string ensureOpensslKeyPresentAndValid(const std::string& filepath) in ensureOpensslKeyPresentAndValid() argument
419 std::string cert = verifyOpensslKeyCert(filepath); in ensureOpensslKeyPresentAndValid()
431 writeCertificateToFile(filepath, cert); in ensureOpensslKeyPresentAndValid()
/openbmc/openbmc-test-automation/extended/code_update/
H A Dcode_update_utils.robot112 [Arguments] ${filepath}
115 # filepath The path of the file whose existence is to be checked.
117 Log \n PATH: ${filepath}
118 OperatingSystem.File Should Exist ${filepath}
119 ... msg=${filepath} doesn't exist [ ERROR ]
121 Set Global Variable ${FILE_PATH} ${filepath}
/openbmc/openbmc/poky/meta/recipes-devtools/go/go/
H A D0003-ld-add-soname-to-shareable-objects.patch29 + argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile)))
37 + argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile)))
45 + argv = append(argv, fmt.Sprintf("-Wl,-soname,%s", filepath.Base(*flagOutfile)))
H A D0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch44 - build.ToolDir = filepath.Join(GOROOTpkg, "tool", installedGOOS+"_"+installedGOARCH)
46 + build.ToolDir = filepath.Clean(s)
48 + build.ToolDir = filepath.Join(GOROOTpkg, "tool", installedGOOS+"_"+installedGOARCH)
/openbmc/linux/tools/usb/usbip/libsrc/
H A Dusbip_device_driver.c66 char filepath[SYSFS_PATH_MAX]; in read_usb_vudc_device() local
76 snprintf(filepath, SYSFS_PATH_MAX, "%s/%s", in read_usb_vudc_device()
78 fd = fopen(filepath, "r"); in read_usb_vudc_device()
/openbmc/linux/scripts/
H A Dget_abi.pl107 $data{$nametag}->{filepath} = $file;
188 $data{$what}->{filepath} = $file;
193 $data{$what}->{filepath} .= " " . $file;
327 my @filepath = split / /, $data{$what}->{filepath};
373 for (my $i = 0; $i < scalar(@filepath); $i++) {
374 my $path = $filepath[$i];
517 my $file = $data{$what}->{filepath};
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Drootfspostcommandstests.py87 filepath = oe.path.join(rootfs_sysconfdir, file)
88 with open(filepath, 'rb') as f:
/openbmc/bmcweb/redfish-core/lib/
H A Dredfish_v1.hpp214 std::filesystem::path filepath("/usr/share/www/redfish/v1/JsonSchemas"); in jsonSchemaGetFile() local
215 filepath /= schemaFile; in jsonSchemaGetFile()
216 if (filepath.is_relative()) in jsonSchemaGetFile()
222 crow::OpenCode ec = asyncResp->res.openFile(filepath); in jsonSchemaGetFile()
/openbmc/u-boot/tools/
H A Dgenboardscfg.py78 filepath = os.path.join(dirpath, filename)
79 if ctime < os.path.getctime(filepath):
88 filepath = os.path.join(dirpath, filename)
89 if ctime < os.path.getctime(filepath):

123