Home
last modified time | relevance | path

Searched +full:path +full:- +full:map (Results 1 – 25 of 1031) sorted by relevance

12345678910>>...42

/openbmc/linux/tools/perf/tests/
H A Dtopology.c1 // SPDX-License-Identifier: GPL-2.0
14 #define TEMPL "/tmp/perf-test-XXXXXX"
17 static int get_temp(char *path) in get_temp() argument
21 strcpy(path, TEMPL); in get_temp()
23 fd = mkstemp(path); in get_temp()
26 return -1; in get_temp()
33 static int session_write_header(char *path) in session_write_header() argument
37 .path = path, in session_write_header()
44 session->evlist = evlist__new_default(); in session_write_header()
45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
[all …]
/openbmc/phosphor-psu-code-mgmt/src/
H A Ditem_updater.hpp11 #include <phosphor-logging/log.hpp>
17 #include <map>
53 * @param[in] bus - The D-Bus bus object
54 * @param[in] path - The D-Bus path
56 ItemUpdater(sdbusplus::bus_t& bus, const std::string& path) : in ItemUpdater() argument
57 ItemUpdaterInherit(bus, path.c_str()), bus(bus), in ItemUpdater()
60 MatchRules::interfacesAdded() + MatchRules::path(SOFTWARE_OBJPATH), in ItemUpdater()
66 MatchRules::path("/xyz/openbmc_project/inventory") + in ItemUpdater()
76 * @param[in] versionId - Id of the version to delete
83 * @param[in] path - The path to create the association to.
[all …]
/openbmc/ibm-logging/
H A Dmanager.hpp12 #include <map>
45 * @param[in] bus - the D-Bus bus object
51 using InterfaceMap = std::map<InterfaceType, std::any>;
52 using EntryMap = std::map<EntryID, InterfaceMap>;
55 using InterfaceMapMulti = std::map<InterfaceType, ObjectList>;
56 using EntryMapMulti = std::map<EntryID, InterfaceMapMulti>;
62 * @param[in] id - the entry ID
72 * @param[in] msg - the sdbusplus message
82 * @param[in] msg - the sdbusplus message
98 * @param[in] objectPath - object path of the error log
[all …]
H A Ddbus.hpp5 #include <map>
28 using DbusPropertyMap = std::map<DbusProperty, Value>;
29 using DbusInterfaceMap = std::map<DbusInterface, DbusPropertyMap>;
33 std::map<sdbusplus::message::object_path, DbusInterfaceMap>;
36 std::map<DbusPath, std::map<DbusService, DbusInterfaceList>>;
39 * Returns the managed objects for an object path and service
41 * Returns an empty map if there are any failures.
43 * @param[in] bus - the D-Bus object
44 * @param[in] service - the D-Bus service name
45 * @param[in] objPath - the D-Bus object path
[all …]
/openbmc/linux/fs/ext4/
H A Dextents.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
15 * - ext4*_error() should be used in some situations
16 * - analyze all BUG()/BUG_ON(), use -EIO where appropriate
17 * - smart tree reduction
53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum()
56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum()
66 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_verify()
70 if (et->et_checksum != ext4_extent_block_csum(inode, eh)) in ext4_extent_block_csum_verify()
80 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_set()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dpinning.c1 // SPDX-License-Identifier: GPL-2.0
12 struct bpf_map *map; in get_map_id() local
17 map = bpf_object__find_map_by_name(obj, name); in get_map_id()
18 if (CHECK(!map, "find map", "NULL map")) in get_map_id()
21 err = bpf_map_get_info_by_fd(bpf_map__fd(map), in get_map_id()
23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
39 struct bpf_map *map; in test_pinning() local
45 /* check that opening fails with invalid pinning value in map def */ in test_pinning()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
98 /* check that same map ID was reused for second load */ in test_pinning()
[all …]
/openbmc/phosphor-debug-collector/
H A Ddump_manager_bmc.hpp12 #include <map>
46 /** @brief Constructor to put object onto bus at a dbus path.
47 * @param[in] bus - Bus to attach to.
48 * @param[in] event - Dump manager sd_event loop.
49 * @param[in] path - Path to attach at.
50 * @param[in] baseEntryPath - Base path for dump entry.
51 * @param[in] filePath - Path where the dumps are stored.
53 Manager(sdbusplus::bus_t& bus, const EventPtr& event, const char* path, in Manager() argument
55 CreateIface(bus, path), in Manager()
56 phosphor::dump::Manager(bus, path, baseEntryPath), in Manager()
[all …]
/openbmc/phosphor-fan-presence/control/json/
H A Dmanager.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
29 #include <phosphor-logging/log.hpp>
38 #include <map>
51 /* Application name to be appended to the path for loading a JSON config file */
84 constexpr auto Path = 0; variable
117 * Package of data from a D-Bus call to get managed objects
119 * std::map<Path, // D-Bus Path
120 * std::map<Intf, // D-Bus Interface
121 * std::map<Property, // D-Bus Property
128 std::map<Path_v, std::map<Intf_v, std::map<Prop_v, PropertyVariantType>>>;
[all …]
/openbmc/linux/tools/perf/util/
H A Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0
34 return (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__test_bit()
35 ? (bit_word32 < data->mask32_data.nr) && in perf_record_cpu_map_data__test_bit()
36 (data->mask32_data.mask[bit_word32] & bit_mask32) != 0 in perf_record_cpu_map_data__test_bit()
37 : (bit_word64 < data->mask64_data.nr) && in perf_record_cpu_map_data__test_bit()
38 (data->mask64_data.mask[bit_word64] & bit_mask64) != 0; in perf_record_cpu_map_data__test_bit()
41 /* Read ith mask value from data into the given 64-bit sized bitmap */
46 if (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__read_one_mask()
47 bitmap[0] = data->mask32_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
49 bitmap[0] = data->mask64_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
[all …]
H A Ddlfilter.c1 // SPDX-License-Identifier: GPL-2.0
3 * dlfilter.c: Interface to perf script --dlfilter shared object
10 #include <subcmd/exec-cmd.h>
20 #include "map.h"
22 #include "trace-event.h"
30 struct symbol *sym = al->sym; in al_to_d_al()
32 d_al->size = sizeof(*d_al); in al_to_d_al()
33 if (al->map) { in al_to_d_al()
34 struct dso *dso = map__dso(al->map); in al_to_d_al()
36 if (symbol_conf.show_kernel_path && dso->long_name) in al_to_d_al()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.h1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
73 * @brief **libbpf_bpf_map_type_str()** converts the provided map type value
75 * @param t The map type.
76 * @return Pointer to a static string identifying the map type. NULL is
100 * @brief **libbpf_set_print()** sets user-provided log callback function to
105 * This function is thread-safe.
116 * - for object open from file, this will override setting object
117 * name from file path's base name;
118 * - for object open from memory buffer, this will specify an object
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dcds_pci_ft.c1 // SPDX-License-Identifier: GPL-2.0+
15 const char *path; in cds_pci_fixup() local
17 u32 *map = NULL, *piccells = NULL; in cds_pci_fixup() local
22 path = fdt_getprop(blob, node, "pci0", NULL); in cds_pci_fixup()
23 if (path) { in cds_pci_fixup()
24 node = fdt_path_offset(blob, path); in cds_pci_fixup()
26 map = fdt_getprop_w(blob, node, "interrupt-map", &len); in cds_pci_fixup()
28 /* Each item in "interrupt-map" property is translated with in cds_pci_fixup()
30 * PCI #address-cells, PCI #interrupt-cells, in cds_pci_fixup()
31 * PIC address, PIC #address-cells, PIC #interrupt-cells. in cds_pci_fixup()
[all …]
/openbmc/openpower-vpd-parser/vpd-manager/include/
H A Dworker.hpp44 * @param[in] pathToConfigJSON - Path to the config JSON, if applicable.
45 * @param[in] i_maxThreadCount - Maximum thread while collecting FRUs VPD.
62 * Before BUS name for VPD-Manager is claimed, fitconfig whould be set for
82 * Note: Config JSON file path should be passed to worker class constructor
91 * @param[in] i_vpdFilePath - Path to the VPD file.
98 * Note: Call this API to populate D-Bus. Also caller should handle empty
101 * @param[in] parsedVpdMap - Parsed VPD as a map.
102 * @param[out] objectInterfaceMap - Object and its interfaces map.
103 * @param[in] vpdFilePath - EEPROM path of FRU.
112 * @param[in] i_dbusObjPath - Dbus object path of the FRU.
[all …]
/openbmc/phosphor-fan-presence/sensor-monitor/
H A Dalarm_timestamps.hpp8 * http://www.apache.org/licenses/LICENSE-2.0
25 #include <phosphor-logging/log.hpp>
32 #include <map>
67 * @brief Adds an entry to the timestamps map and persists it.
69 * @param[in] key - The AlarmKey value
70 * @param[in] timestamp - The start timestamp to save
87 * @param[in] key - The AlarmKey value
101 void erase(std::map<AlarmKey, uint64_t>::const_iterator& entry) in erase()
124 * @param[in] alarms - The current alarms map.
127 const std::map<AlarmKey, std::unique_ptr<sdeventplus::utility::Timer< in prune()
[all …]
/openbmc/openpower-occ-control/
H A Docc_dbus.hpp30 * @brief This is a custom D-Bus object, used to add D-Bus interface and update
54 * @param[in] path - The object path
55 * @param[in] value - The value of the MaxValue property
59 bool setMaxValue(const std::string& path, double value);
63 * @param[in] path - The object path
65 * @return bool - The value of the MaxValue property
67 double getMaxValue(const std::string& path) const;
71 * @param[in] path - The object path
72 * @param[in] value - The value of the MinValue property
76 bool setMinValue(const std::string& path, double value);
[all …]
/openbmc/openpower-pnor-code-mgmt/test/
H A Dtest_functions.cpp1 // SPDX-License-Identifier: Apache-2.0
11 #include <map>
21 std::map<std::string, std::vector<std::string>> extensionMap{{ in TEST()
22 {"system-foo"s, {".EXT"s}}, in TEST()
24 std::vector<std::string> compatibleSystem{"system-foo"s}, extensions; in TEST()
34 std::map<std::string, std::vector<std::string>> extensionMap{{ in TEST()
35 {"system-bar"s, {".EXT"s}}, in TEST()
37 std::vector<std::string> compatibleSystem{"system-foo"s}, in TEST()
48 std::map<std::string, std::vector<std::string>> extensionMap{{ in TEST()
49 {"system-bar"s, {".BAR"s}}, in TEST()
[all …]
/openbmc/phosphor-power/
H A Dutility.hpp6 #include <phosphor-logging/elog.hpp>
7 #include <phosphor-logging/log.hpp>
23 constexpr auto POWEROFF_TARGET = "obmc-chassis-hard-poweroff@0.target";
32 std::map<DbusPath, std::map<DbusService, DbusInterfaceList>>;
36 using DbusPropertyMap = std::map<DbusProperty, DbusVariant>;
39 * interface and path passed in.
41 * @param[in] path - the D-Bus path name
42 * @param[in] interface - the D-Bus interface name
43 * @param[in] bus - the D-Bus object
44 * @param[in] logError - log error when no service found
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dutils.hpp4 #include <ipmid/api-types.hpp>
32 * than the default 25s D-Bus timeout. */
47 * and path.
49 * @param[in] intf - The interface used for each lookup
50 * @param[in] path - The path used for each lookup
52 ServiceCache(const std::string& intf, const std::string& path);
53 ServiceCache(std::string&& intf, std::string&& path);
58 * @param[in] bus - Th
87 const std::string path; global() member in ipmi::ServiceCache
[all...]
/openbmc/openpower-pnor-code-mgmt/
H A Ditem_updater.cpp7 #include <phosphor-logging/elog-errors.hpp>
8 #include <phosphor-logging/log.hpp>
30 std::map<std::string, std::map<std::string, std::variant<std::string>>> in createActivation()
34 std::string path(std::move(objPath)); in createActivation() local
67 if (property.first == "Path") in createActivation()
79 // Version id is the last item in the path in createActivation()
80 auto pos = path.rfind("/"); in createActivation()
83 log<level::ERR>("No version id found in object path", in createActivation()
84 entry("OBJPATH=%s", path.c_str())); in createActivation()
88 auto versionId = path.substr(pos + 1); in createActivation()
[all …]
/openbmc/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-iter.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-iter
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
26 | **bpftool** **iter pin** *OBJ* *PATH* [**map** *MAP*]
30 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* }
34 **bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
42 and pin it to *PATH*. The *PATH* should be located
47 Map element bpf iterator requires an additional parameter
48 *MAP* so bpf program can iterate over map elements for
[all …]
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.cpp1 // SPDX-License-Identifier: Apache-2.0
9 #include <phosphor-logging/log.hpp>
10 #include <phosphor-logging/elog-errors.hpp>
36 fs::path Request::getPartitionFilePath(int flags) in getPartitionFilePath()
39 auto dst = fs::path(ctx->paths.patch_loc) / partition.data.name; in getPartitionFilePath()
49 dst = ctx->paths.prsv_loc; in getPartitionFilePath()
53 dst = ctx->paths.ro_loc; in getPartitionFilePath()
57 dst = ctx->paths.rw_loc; in getPartitionFilePath()
68 dst = fs::path(ctx->paths.ro_loc) / partition.data.name; in getPartitionFilePath()
74 auto src = fs::path(ctx->paths.ro_loc) / partition.data.name; in getPartitionFilePath()
[all …]
/openbmc/linux/fs/btrfs/
H A Dvolumes.c1 // SPDX-License-Identifier: GPL-2.0
18 #include "disk-io.h"
20 #include "print-tree.h"
23 #include "rcu-string.h"
24 #include "dev-replace.h"
26 #include "tree-checker.h"
27 #include "space-info.h"
28 #include "block-group.h"
33 #include "uuid-tree.h"
217 size_bp -= ret; \ in btrfs_describe_block_groups()
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dzone.hpp29 * - init - only do the initialization steps
30 * - control - run normal control algorithms
57 * @param[in] mode - mode of fan control
58 * @param[in] bus - the dbus object
59 * @param[in] path - object instance path
60 * @param[in] event - Event loop reference
61 * @param[in] def - the fan zone definition data
63 Zone(Mode mode, sdbusplus::bus_t& bus, const std::string& path,
77 * @brief Get the zone's path
79 * @return The path of this zone
[all …]
/openbmc/phosphor-inventory-manager/
H A Dmanager.hpp16 #include <map>
59 * @param[in] bus - An sdbusplus bus connection.
60 * @param[in] root - The DBus path on which to implement
70 * @param[in] busname - The DBus busname to own.
79 std::map<sdbusplus::message::object_path, Object> objs) override;
90 const std::map<sdbusplus::message::object_path, Object>& objs);
94 const std::map<sdbusplus::message::object_path, Object>& objs,
105 * @tparam T - The sdbusplus server binding interface type.
106 * @tparam U - The type of the sdbusplus server binding member.
107 * @tparam Args - Argument types of the binding member.
[all …]
/openbmc/phosphor-fan-presence/cooling-type/
H A Dcooling_type.hpp26 using PropertyMap = std::map<Property, Value>;
29 using InterfaceMap = std::map<Interface, PropertyMap>;
32 using ObjectMap = std::map<Object, InterfaceMap>;
45 * @param[in] bus - Dbus bus object
47 explicit CoolingType(sdbusplus::bus_t& bus) : bus(bus), gpioFd(-1) in CoolingType()
49 // TODO: Issue openbmc/openbmc#1531 - means to default properties. in CoolingType()
63 * @param[in] path - Path to object to update
65 void updateInventory(const std::string& path);
69 * @param[in] path - Path to the GPIO device file to read
70 * @param[in] pin - Event/key code to read (pin)
[all …]

12345678910>>...42