#
b2670248 |
| 30-Nov-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
guideline: remove 'using namespace' from headers
Using namespace at global scope in a header file violates the cpp core guidelines. Quoting the guidelines:
"Doing so takes away an #includer’s ab
guideline: remove 'using namespace' from headers
Using namespace at global scope in a header file violates the cpp core guidelines. Quoting the guidelines:
"Doing so takes away an #includer’s ability to effectively disambiguate and to use alternatives. It also makes #included headers order-dependent as they might have different meaning when included in different orders."
For further reading: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive
Change-Id: I40fd6b31a94fe9a12426f76fc71d0832125a8740 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
864e173e |
| 11-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Add clang-tidy file
This commit implements a clang-tidy file, and makes some changes to get it to pass. Most changes are naming or mechanical in nature.
Tested: CI passed in docker.
Change-Id: I1f
Add clang-tidy file
This commit implements a clang-tidy file, and makes some changes to get it to pass. Most changes are naming or mechanical in nature.
Tested: CI passed in docker.
Change-Id: I1f9acf546542c839b8f9facb5b8beff37c0d5909 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
dd42c7fa |
| 11-Aug-2022 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Minor changes in the code
- fix a typo in README and wrap file. - refactoring lg2 errorlog usage.
Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff Signed-off-by: Pavithra Barithaya <pavithra.b@
Minor changes in the code
- fix a typo in README and wrap file. - refactoring lg2 errorlog usage.
Change-Id: I3b55b86a505405f02fe70429a266c467b87b17ff Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
dc746c0b |
| 01-Sep-2022 |
George Liu <liuxiwei@inspur.com> |
Move the getSubTree method to utils
Since the getSubTree method is a generic method that users may use anywhere, It is better to move this method to utils.
Signed-off-by: George Liu <liuxiwei@inspu
Move the getSubTree method to utils
Since the getSubTree method is a generic method that users may use anywhere, It is better to move this method to utils.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ib6e1367b9885dac38a7ba6b63329977436e70c26
show more ...
|
#
43dfeeb1 |
| 01-Sep-2022 |
George Liu <liuxiwei@inspur.com> |
Remove the service method in settings.hpp
Since the service method in settings.hpp is redundant, it is recommended to remove it.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I056abcd4
Remove the service method in settings.hpp
Since the service method in settings.hpp is redundant, it is recommended to remove it.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I056abcd4f6aef4e5d7d292a8786cebcbb7ecd15f
show more ...
|
#
7e5f9f79 |
| 16-Aug-2022 |
George Liu <liuxiwei@inspur.com> |
Trigger the propertyChanged method of TestManager
propertyChanged is Disabled by default, and UT is not executed, optimize the code and enable it.
Tested: Verify that the propertyChanged method of
Trigger the propertyChanged method of TestManager
propertyChanged is Disabled by default, and UT is not executed, optimize the code and enable it.
Tested: Verify that the propertyChanged method of Testmanager executes UT successfully.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I1bb9241c7f8f37de0ee151d26156c9876627f0fb
show more ...
|
#
38679266 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9cedddf4dc9b224ecbc2f68e6b00c0ab1885a826
show more ...
|
#
947b5346 |
| 01-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@in
logging: switch to lg2
It is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ic8a400451f96cde5bdb9f47094806bd31adce7d9
show more ...
|
#
f344f84e |
| 01-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
Remove is_method_error method
Remove the usage of is_method_error()[1], and add try-catch to handle D-Bus exceptions around mapper call.
[1]https://github.com/openbmc/sdbusplus/commit/079fb85a398d9
Remove is_method_error method
Remove the usage of is_method_error()[1], and add try-catch to handle D-Bus exceptions around mapper call.
[1]https://github.com/openbmc/sdbusplus/commit/079fb85a398d90800935e3985bb1266a7530a26e#diff-945669e8bd9cab4ecc83a574a732921281b2c79eb8bba65efff11736ad18f92bR237-R240
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id3c0358431d0d899b4d899b5d74d954426370aba
show more ...
|
#
0a70452a |
| 13-Apr-2020 |
George Liu <liuxiwei@inspur.com> |
Remove Deferred Updates
Remove deferred consumption of settings Manual/NTP and allow instant consumption.
Tested: Manually set the timeMode to NTP on the WEB and successfully. busctl get-property x
Remove Deferred Updates
Remove deferred consumption of settings Manual/NTP and allow instant consumption.
Tested: Manually set the timeMode to NTP on the WEB and successfully. busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/time/sync_method xyz.openbmc_project.Time.Synchronization TimeSyncMethod s "xyz.openbmc_project.Time.Synchronization.Method.NTP"
Manually set the date time successfully by D-Bus when timeMode is MANUAL busctl set-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1514765953791262
Manually set the date time failed by D-Bus when timeMode is NTP. busctl set-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1514765953791262 Failed to set property Elapsed on interface xyz.openbmc_project.TIme.EpochTime: The operation failed
~# journalctl -b | grep timemanager Jan 01 00:15:26 fp5280g2 phosphor-timemanager[309]: Error in setting system time Jan 01 00:15:26 fp5280g2 phosphor-timemanager[309]: The operation failed
Refer: https://lists.ozlabs.org/pipermail/openbmc/2020-April/021409.html
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I7be25a9d0f56615bad6800a0b07df7f84fc0acc3
show more ...
|
#
3c2f4496 |
| 11-Apr-2020 |
George Liu <liuxiwei@inspur.com> |
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed settings objects.
Tested: Manually set the date time on the web and successfully update the date time of BMC (eg: 2020/01/01 08:07:50). busctrl get-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1577837156385836
Refer: https://lists.ozlabs.org/pipermail/openbmc/2020-April/021409.html
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id47eb0a03e0e94eeff29d2b77dccefb89cded7b8
show more ...
|
#
4e845393 |
| 18-Dec-2018 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Use a single dbus connection object
Starting with sdbusplus 8ca6025, calling bus_new_default multiple times doesn't seem to work - making calls that generate dbus traffic on one of the objects resul
Use a single dbus connection object
Starting with sdbusplus 8ca6025, calling bus_new_default multiple times doesn't seem to work - making calls that generate dbus traffic on one of the objects results in something like:
sd_bus_call: System.Error.ENOTCONN: Transport endpoint is not connected
This wasn't ideal anyway - move to a single object, shared application-wide.
Tested: Booted a witherspoon QEMU image and there were no coredumps Change-Id: I804a1b1438b22f48e45b26d395135e401ca98a06 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
ab4cc6a5 |
| 14-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-an
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ic2c462525eb27b8295c2b298871e04268d93faf2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
7aa715b2 |
| 09-May-2018 |
Ed Tanous <ed.tanous@intel.com> |
Follow secure coding standards for interactions with the mapper
This patchset updates phosphor-time-manager to follow secure coding guidelines when interacting with the mapper. Specifically, it rep
Follow secure coding standards for interactions with the mapper
This patchset updates phosphor-time-manager to follow secure coding guidelines when interacting with the mapper. Specifically, it replaces uses of std::map with std::vector<std::pair<>>, which should net some small performance wins. This change also causes time-manager to properly enumerate each response.
Tested-By: Built with changeset, and verified via d-feet that /xyz/openbmc_project/time/host and /xyz/openbmc_project/time/bmc were present, and verified reading of the "Elapsed" parameter returned the expected time result.
Change-Id: If4329d533641595cf0b50c4e50e2dda69b299f52 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
show more ...
|
#
debe1d8f |
| 13-Oct-2017 |
Lei YU <mine260309@gmail.com> |
Use host state object to check if host is on
The code was using pgood to determine if host is on or off. Now we have host state object, which is a more appropriate way to check host on/off. So chang
Use host state object to check if host is on
The code was using pgood to determine if host is on or off. Now we have host state object, which is a more appropriate way to check host on/off. So change pgood related code to use host state object.
Change-Id: I553c1a40922ca2e8bc6904688c55e85971bd4720 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
20ed79e0 |
| 25-Jul-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add API to retrieve settings
Add API to retrieve all settings objects of interest to the time manager.
Change-Id: I3d121c08d0156cf481a3468e6c7ca9b71f53d666 Signed-off-by: Deepak Kodihalli <dkodihal
Add API to retrieve settings
Add API to retrieve all settings objects of interest to the time manager.
Change-Id: I3d121c08d0156cf481a3468e6c7ca9b71f53d666 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|