History log of /openbmc/phosphor-led-manager/manager/lamptest/ (Results 1 – 18 of 18)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
49875a2622-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable readability-implicit-bool-conversion check

This check can be used to find implicit conversions between
built-in types and booleans.
the following conversion types are checked:
- i

clang-tidy: Enable readability-implicit-bool-conversion check

This check can be used to find implicit conversions between
built-in types and booleans.
the following conversion types are checked:
- integer expression/literal to boolean
- floating expression/literal to boolean
- pointer/pointer to member/nullptr/NULL to boolean
- boolean expression/literal to integer
- boolean expression/literal to floating

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I3f4bc8902e255d1c85ec57f47d9532ee7326a442

show more ...

f059255922-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable readability-convert-member-functions-to-static

This check finds non-static member functions that can be made
static because the functions don’t use this.
This check also triggers

clang-tidy: Enable readability-convert-member-functions-to-static

This check finds non-static member functions that can be made
static because the functions don’t use this.
This check also triggers readability-static-accessed-through
-instance check as we are trying to access a static member
function through an instance.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I6efe76666f75fb4f65621796466d9347cea25d01

show more ...

df3ab7c922-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable performance-move-const-arg check

The check warns:
- if std::move() is called with a constant argument.
- if std::move() is called with an argument of a trivially-copyable
type.

clang-tidy: Enable performance-move-const-arg check

The check warns:
- if std::move() is called with a constant argument.
- if std::move() is called with an argument of a trivially-copyable
type.
- if the result of std::move() is passed as a const reference
argument.

In all three cases, the check will suggest a fix that removes the
std::move().

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ibaf1050b39bbcaddd27473c6f2009adbfb96125f

show more ...

aaa667f222-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable modernize-use-nullptr check

This check converts the usage of null pointer constants
(e.g. NULL, 0) to use the new C++11 and C23 nullptr keyword.

Signed-off-by: George Liu <liuxiw

clang-tidy: Enable modernize-use-nullptr check

This check converts the usage of null pointer constants
(e.g. NULL, 0) to use the new C++11 and C23 nullptr keyword.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I10dccfd0513385c583ca07d13ed71edb04b58853

show more ...

fcf0810622-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable modernize-use-emplace check

The check flags insertions to an STL-style container done by
calling the push_back, push, or push_front methods with an
explicitly-constructed temporar

clang-tidy: Enable modernize-use-emplace check

The check flags insertions to an STL-style container done by
calling the push_back, push, or push_front methods with an
explicitly-constructed temporary of the container element type.
In this case, the corresponding emplace equivalent methods result
in less verbose and potentially more efficient code.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I540c22d3d26195a9d1ead57a4322541951c9ff53

show more ...

226059b822-Aug-2024 George Liu <liuxiwei@ieisystem.com>

clang-tidy: Enable modernize-avoid-bind check

The check finds uses of std::bind and boost::bind and replaces them
with lambdas.

Lambdas will use value-capture unless reference capture is explicitly

clang-tidy: Enable modernize-avoid-bind check

The check finds uses of std::bind and boost::bind and replaces them
with lambdas.

Lambdas will use value-capture unless reference capture is explicitly
requested with std::ref or boost::ref.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I4491650a46eaab1588474b26efc622e89232ef02

show more ...

8f538d9c22-Aug-2024 George Liu <liuxiwei@ieisystem.com>

Add clang-tidy to phosphor-led-manager

This commit enables clang-tidy and adds few tidy checks.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I3a7b41545fef4c726b56aeab3e4b4000dfcac3

Add clang-tidy to phosphor-led-manager

This commit enables clang-tidy and adds few tidy checks.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I3a7b41545fef4c726b56aeab3e4b4000dfcac32f

show more ...


/openbmc/phosphor-led-manager/.clang-format
/openbmc/phosphor-led-manager/.clang-tidy
/openbmc/phosphor-led-manager/README.md
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Everest.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier1S4U.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier2U.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier4U.json
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.hpp
/openbmc/phosphor-led-manager/manager/config-validator.cpp
/openbmc/phosphor-led-manager/manager/config-validator.hpp
/openbmc/phosphor-led-manager/manager/group.hpp
/openbmc/phosphor-led-manager/manager/grouplayout.hpp
/openbmc/phosphor-led-manager/manager/json-config.hpp
/openbmc/phosphor-led-manager/manager/json-parser.hpp
lamptest.cpp
lamptest.hpp
/openbmc/phosphor-led-manager/manager/led-main.cpp
/openbmc/phosphor-led-manager/manager/ledlayout.hpp
/openbmc/phosphor-led-manager/manager/manager.cpp
/openbmc/phosphor-led-manager/manager/manager.hpp
/openbmc/phosphor-led-manager/manager/meson.build
/openbmc/phosphor-led-manager/scripts/parse_led.py
/openbmc/phosphor-led-manager/test/config/led-group-config.json
/openbmc/phosphor-led-manager/test/config/test-group-priority.yaml
/openbmc/phosphor-led-manager/test/config/test-led-priority.yaml
/openbmc/phosphor-led-manager/test/led-test-map.hpp
/openbmc/phosphor-led-manager/test/meson.build
/openbmc/phosphor-led-manager/test/utest-config-validator.cpp
/openbmc/phosphor-led-manager/test/utest-group-priority.cpp
/openbmc/phosphor-led-manager/test/utest-led-json.cpp
/openbmc/phosphor-led-manager/test/utest-led-yaml-group-priority.cpp
/openbmc/phosphor-led-manager/test/utest-led-yaml-led-priority.cpp
/openbmc/phosphor-led-manager/test/utest.cpp
/openbmc/phosphor-led-manager/utils.cpp
/openbmc/phosphor-led-manager/utils.hpp
94e894cb17-Jun-2024 Manojkiran Eda <manojkiran.eda@gmail.com>

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://githu

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://github.com/codespell-project/codespell

Change-Id: I3a5360efb5b6a71d5eabb557accf939cd6abc864
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...

e3515c7115-Oct-2022 Sunny Srivastava <sunnsr25@in.ibm.com>

Reset lamps after reboot

In case lamp test has been triggered and reboot takes place,
even after reboot the lamps are found to be in the on state.

The commit switches off the lamps in case such sit

Reset lamps after reboot

In case lamp test has been triggered and reboot takes place,
even after reboot the lamps are found to be in the on state.

The commit switches off the lamps in case such situation is
found and restores the LEDs to the state in which they were
before lamp test was triggered.

Change-Id: I3d199b7066751e89bd6faffc38af3e36877ca003
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>

show more ...

180090cf10-Oct-2022 PriyangaRamasamy <priyanga24@in.ibm.com>

Resolve issues in lamp test feature

This commit implements the following changes in lamp test

1. Reset lamp test timer on assert to assert case
2. Reject stopping lamp test when there is a request

Resolve issues in lamp test feature

This commit implements the following changes in lamp test

1. Reset lamp test timer on assert to assert case
2. Reject stopping lamp test when there is a request to
deassert lamp test.

Test:
Case 1: Start lamp test (False to True).
Result: 4mins of lamp test execution and Asserted is set back to
false after 4mins.

Case 2: Stop lamp test (False to False).
Result: Lamp test is not performed and Asserted remains false.

Case 3: Stop request when lamp test is still on (True to false)
Result: Stop request not allowed and lamp test continues to execute.
Asserted stays true until the lamp test ends.

Case 4: Retrigger lamp test (True to True).
Result: 4mins timer restarts. Asserted should be back to false after
4mins.

Change-Id: Ib6086f223d5c5ce80b872ed5f35645893ce79cf9
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>

show more ...

605600eb20-Oct-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-17 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-17 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: Ie509bd0c9f5a19db463c4bb51ede752e778439b3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

1f0b715a17-Jul-2023 George Liu <liuxiwei@inspur.com>

Use the lower camel case of the C++ standard

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ied901f0cc7cc6606e199dad0e31a35f838c32ab9

785f505417-Jul-2023 George Liu <liuxiwei@inspur.com>

lamp test: Fix calling GetSubTreePaths method

The caller should catch the exception when calling the
GetSubTreePaths method to prevent the process coredump

Signed-off-by: George Liu <liuxiwei@inspu

lamp test: Fix calling GetSubTreePaths method

The caller should catch the exception when calling the
GetSubTreePaths method to prevent the process coredump

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I5bd8adb6191fa7f61dabd8be18b1753f4c65c2c5

show more ...

857da38310-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: I918b0a2e9d18c9810ee2940dbe78072754c75a94
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

3e073ba622-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: I223d58649a21565678bd7ef78d955b30d3fd6d84

show more ...

158b2c1417-Mar-2022 Patrick Williams <patrick@stwcx.xyz>

led-layout: use common types everywhere

Rather than scattered map and set typedefs, centralize the two common
structures into 'ledlayout.hpp': ActionSet, GroupMap. Use them
everywhere where previou

led-layout: use common types everywhere

Rather than scattered map and set typedefs, centralize the two common
structures into 'ledlayout.hpp': ActionSet, GroupMap. Use them
everywhere where previous raw maps and sets were used.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0ed5203146a6486a49caf4000f545ded0088dc15

show more ...

ed80e88517-Mar-2022 Patrick Williams <patrick@stwcx.xyz>

action: use PDI type

Rather than define our own enumeration for the LED Actions,
reuse the one from Led.Physical's dbus interface.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I46

action: use PDI type

Rather than define our own enumeration for the LED Actions,
reuse the one from Led.Physical's dbus interface.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4615bed9e87c61d2632fe790bd50892a7f51e2ab

show more ...

953315d216-Mar-2022 Patrick Williams <patrick@stwcx.xyz>

manager: move code to subdirectory

The root has become pretty cluttered. Move code for the primary
manager application to a subdirectory.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change

manager: move code to subdirectory

The root has become pretty cluttered. Move code for the primary
manager application to a subdirectory.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8503cf08c72750c88a5ce94a4d94671d6b59aafb

show more ...


/openbmc/phosphor-led-manager/.clang-format
/openbmc/phosphor-led-manager/.eslintignore
/openbmc/phosphor-led-manager/.gitignore
/openbmc/phosphor-led-manager/.shellcheck
/openbmc/phosphor-led-manager/LICENSE
/openbmc/phosphor-led-manager/MAINTAINERS
/openbmc/phosphor-led-manager/OWNERS
/openbmc/phosphor-led-manager/configs/ibm,everest/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-1s4u/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-2u/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-4u/led-group-config.json
/openbmc/phosphor-led-manager/example/lamp-test/lamp-test-led-overrides.json
/openbmc/phosphor-led-manager/example/led-group-config.json
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.hpp
/openbmc/phosphor-led-manager/fault-monitor/meson.build
/openbmc/phosphor-led-manager/fault-monitor/monitor-main.cpp
/openbmc/phosphor-led-manager/fault-monitor/operational-status-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/operational-status-monitor.hpp
/openbmc/phosphor-led-manager/led.yaml
/openbmc/phosphor-led-manager/manager/group.cpp
/openbmc/phosphor-led-manager/manager/group.hpp
/openbmc/phosphor-led-manager/manager/json-config.hpp
/openbmc/phosphor-led-manager/manager/json-parser.hpp
lamptest.cpp
lamptest.hpp
/openbmc/phosphor-led-manager/manager/led-main.cpp
/openbmc/phosphor-led-manager/manager/ledlayout.hpp
/openbmc/phosphor-led-manager/manager/manager.cpp
/openbmc/phosphor-led-manager/manager/manager.hpp
/openbmc/phosphor-led-manager/manager/meson.build
/openbmc/phosphor-led-manager/manager/serialize.cpp
/openbmc/phosphor-led-manager/manager/serialize.hpp
/openbmc/phosphor-led-manager/meson.build
/openbmc/phosphor-led-manager/meson_options.txt
/openbmc/phosphor-led-manager/scripts/led-set-all-groups-asserted.sh
/openbmc/phosphor-led-manager/scripts/parse_led.py
/openbmc/phosphor-led-manager/subprojects/cereal.wrap
/openbmc/phosphor-led-manager/subprojects/googletest.wrap
/openbmc/phosphor-led-manager/subprojects/nlohmann.wrap
/openbmc/phosphor-led-manager/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-led-manager/subprojects/phosphor-logging.wrap
/openbmc/phosphor-led-manager/subprojects/sdbusplus.wrap
/openbmc/phosphor-led-manager/subprojects/sdeventplus.wrap
/openbmc/phosphor-led-manager/test/config/led-group-config-malformed.json
/openbmc/phosphor-led-manager/test/config/led-group-config.json
/openbmc/phosphor-led-manager/test/led-test-map.hpp
/openbmc/phosphor-led-manager/test/meson.build
/openbmc/phosphor-led-manager/test/utest-led-json.cpp
/openbmc/phosphor-led-manager/test/utest-serialize.cpp
/openbmc/phosphor-led-manager/test/utest.cpp
/openbmc/phosphor-led-manager/utils.cpp
/openbmc/phosphor-led-manager/utils.hpp