ea220361 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I23581dad78b692e49f1c316aecf8a2bb7de95035 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
b99426b6 | 28-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Enable few more misc tidy checks.
Change-Id: Idcf8a74071441f0575c5e8b5179157e0d16a0a0a Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com> |
06df6548 | 28-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Enable cppcoreguidelines-special-member-functions checks
Part of enforcing cpp core guidelines involves explicitly including all constructors required on a non-trivial class. We were missing quite
Enable cppcoreguidelines-special-member-functions checks
Part of enforcing cpp core guidelines involves explicitly including all constructors required on a non-trivial class. We were missing quite a few. In all cases, the copy/move/and operator= methods are simply deleted.
Change-Id: Ib71266e77808d15ae896891eea3e31c5b0394eb1 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
8af2a1e3 | 27-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Enable cppcoreguidelines check on the repo
This commit adds cppcoreguidelines clang-tidy checks and make necessary changes.
Change-Id: I402b82f96b7ff82e3ba6d84c9cc50435c1ead6d4 Signed-off-by: Pavit
Enable cppcoreguidelines check on the repo
This commit adds cppcoreguidelines clang-tidy checks and make necessary changes.
Change-Id: I402b82f96b7ff82e3ba6d84c9cc50435c1ead6d4 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
f93c405f | 26-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Enable modernize tidy checks on the repo
This commit enables the modernize clang-tidy checks.
Change-Id: I586303ebc257c6e6e05489247bc75d227b328607 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.
Enable modernize tidy checks on the repo
This commit enables the modernize clang-tidy checks.
Change-Id: I586303ebc257c6e6e05489247bc75d227b328607 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 ...
|
cb421097 | 16-Aug-2022 |
George Liu <liuxiwei@inspur.com> |
Move timeMode property to manager
The current logic is to maintain the same attribute in manager and epoch_base, the purpose of this commit is to merge this attribute into manager for maintenance.
Move timeMode property to manager
The current logic is to maintain the same attribute in manager and epoch_base, the purpose of this commit is to merge this attribute into manager for maintenance.
Also, Update the test/TestBmcEpoch.cpp file.
Tested: Built phosphor-time-manager successfully and UT passed.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I05fea271d672bf12ecb722005023dfa6a2a980d1
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 ...
|
81194a82 | 17-Aug-2022 |
George Liu <liuxiwei@inspur.com> |
Remove redundant code
After checking that these codes are no longer used, delete these.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: If832abbf6ffefba0fb83cf2a29a3fc816cc46835 |
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 ...
|
0fb8ed4d | 01-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
meson: update dependency
Add subprojects file and update .gitignore
Also, remove the test/Makefile.am file.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I39be4b64d53d2aef1884ce0b7475
meson: update dependency
Add subprojects file and update .gitignore
Also, remove the test/Makefile.am file.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I39be4b64d53d2aef1884ce0b7475c2cfc39c7ac4
show more ...
|
8af2a894 | 02-Feb-2021 |
Ratan Gupta <ratagupt@in.ibm.com> |
Enable Meson Build system for phoshphor-time-manager
- This commit enables the meson build system for the phoshphor-time-manager repo.
Tested By: - Code compiles both in arm & x86 sdks without er
Enable Meson Build system for phoshphor-time-manager
- This commit enables the meson build system for the phoshphor-time-manager repo.
Tested By: - Code compiles both in arm & x86 sdks without errors or warnings. - All the unit test cases are getting passed.
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com> Change-Id: I311bf33f34c6c71860e9c845b6ca3c591af8fa6a
show more ...
|
c6d33972 | 21-Jun-2020 |
George Liu <liuxiwei@inspur.com> |
clang-format: update to latest from docs repo
Since `Cpp11` is an alias for `Latest` and we should tend towards using the latest C++ standard, update the C++ standard to Latest.
https://github.com/
clang-format: update to latest from docs repo
Since `Cpp11` is an alias for `Latest` and we should tend towards using the latest C++ standard, update the C++ standard to Latest.
https://github.com/llvm/llvm-project/commit/e5032567903de19962333c4bf7d2edceaf4f9824#diff-b49a097415dff2837d9626d422c58ba8R82 https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I6bd62f057c6881b4e931c1968d71ce5478832d73
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 ...
|
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 ...
|
19b37ee2 | 18-Sep-2018 |
Lei YU <mine260309@gmail.com> |
Enable link time optimization
To enable link time optimization, several configures needs to be changed: 1. Add -flto in Makefiles 2. Use C++17 to get inline constexpr 3. Use gcc-ar and gcc-ranlib to
Enable link time optimization
To enable link time optimization, several configures needs to be changed: 1. Add -flto in Makefiles 2. Use C++17 to get inline constexpr 3. Use gcc-ar and gcc-ranlib to generate static library, otherwise it gets link errors.
Tested: Build OK and unit tests passes.
Change-Id: Ic58cbfb631c97f43c82d5669cbf6ac1ebc5e0ab9 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
f6fad820 | 13-Jul-2018 |
Lei YU <mine260309@gmail.com> |
Use proper errors when failing to set time
Previously it reports InsufficientPermission when it is not allowed to set time.
Now phosphor-dbus-interfaces defines proper errors for such case, so repo
Use proper errors when failing to set time
Previously it reports InsufficientPermission when it is not allowed to set time.
Now phosphor-dbus-interfaces defines proper errors for such case, so report NotAllowed error when it is not allowed to set time, and report Failed error when it failed to set time.
Tested: Get NotAllowed and Failed error with expected metadata from journal log.
Change-Id: I53610bf27ffc3f62608cea6fd0e66ca859d94675 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
bd024395 | 09-Sep-2018 |
Lei YU <mine260309@gmail.com> |
Use correct gtest/gmock flags
The test Makefile.am was using -lgmock -lgmock_main directly, which cause link issues on compiling test. Fix this by using the flags specified by gtest package.
Tested
Use correct gtest/gmock flags
The test Makefile.am was using -lgmock -lgmock_main directly, which cause link issues on compiling test. Fix this by using the flags specified by gtest package.
Tested: Verify the CI passes build.
Change-Id: Id51134d7e2696e18f7439f15f8d899edba51856e Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
33752c75 | 07-Jun-2018 |
Lei YU <mine260309@gmail.com> |
Throw excpetion when it is not allowed to set time
When it is not allowed to set time depending on the time setting, previously we only log an error and continue. Now sdbusplus supports errors on pr
Throw excpetion when it is not allowed to set time
When it is not allowed to set time depending on the time setting, previously we only log an error and continue. Now sdbusplus supports errors on properties, so we can throw exception on such case.
Tested: Verify in unittest that exception is thrown when it is not allowed to set time. Verify in BMC that busctl gets the error message when it is not allowed to set time. Change-Id: I4a04d1aa8c081abf0f9fd449118dc1107e12f689 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
7f25c53f | 25-Oct-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Spelling fixes
Change-Id: Ia840360c00cc8d7baaafd797ae2411bc5cc03ed3 Signed-off-by: Gunnar Mills <gmills@us.ibm.com> |
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 ...
|
1c2ce82c | 01-Aug-2017 |
Lei YU <mine260309@gmail.com> |
Let timedate1 to decide on setting time in NTP mode
In NTP mode, let timedate1 to set BMC time, for now, it results in error.
Change-Id: I2d78cdcfe6868642f43198dd932b20b13fd8523d Signed-off-by: Lei
Let timedate1 to decide on setting time in NTP mode
In NTP mode, let timedate1 to set BMC time, for now, it results in error.
Change-Id: I2d78cdcfe6868642f43198dd932b20b13fd8523d Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
710d49be | 01-Aug-2017 |
Lei YU <mine260309@gmail.com> |
Use new settings API
The new time manager code was using the old settings daemon. Now it uses the new settings API.
Change-Id: Id551d97c28a6cfbb81c87118b26292b1b5574e93 Signed-off-by: Lei YU <mine2
Use new settings API
The new time manager code was using the old settings daemon. Now it uses the new settings API.
Change-Id: Id551d97c28a6cfbb81c87118b26292b1b5574e93 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
ad14354f | 25-Jul-2017 |
Lei YU <mine260309@gmail.com> |
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generate
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generated code to do convertions between strings and enums.
Update unit tests accordingly.
Change-Id: Ic304aa3b4137375d208bb1702e0f64df512fc5a0 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|