History log of /openbmc/phosphor-logging/lib/ (Results 1 – 25 of 43)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
236d864b18-Nov-2024 Amithash Prasasd <amithash@meta.com>

Install commit.hpp into target include directory

This ensures that users can include commit.hpp which
is needed to generate event logs

Change-Id: Ie04479d9a9ef41a3e3533db7bc20d33ff22b38be
Signed-of

Install commit.hpp into target include directory

This ensures that users can include commit.hpp which
is needed to generate event logs

Change-Id: Ie04479d9a9ef41a3e3533db7bc20d33ff22b38be
Signed-off-by: Amithash Prasasd <amithash@meta.com>

show more ...

fc14867b06-Nov-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: commit: simplify commit functions

Eliminate the template indirection for the commit function in favor
of a base-class overload. There was previously a public template
specialization of `lg2::c

lg2: commit: simplify commit functions

Eliminate the template indirection for the commit function in favor
of a base-class overload. There was previously a public template
specialization of `lg2::commit` and a private base-class implementation
(in the `details` namespace). The template implementations provided
no stronger type-checking, since it was already a concept requiring
inheritance from the base-class. The template precluded simple code
such as:

```cpp
try
{
//...
}
catch (const sdbusplus::exception::generated_event_base& e)
{
lg2::commit(e);
}
```

By making the base-class types public, rather than hidden in the
details namespace, and removing the templates, the code is simpler
and more usable.

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

show more ...

6eb96bf705-Nov-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: commit: add support for journal-only method

The design document for the new event system references an
option to log events to the journal rather than to dbus[1] using
the 'OPENBMC_MESSAGE_ID'

lg2: commit: add support for journal-only method

The design document for the new event system references an
option to log events to the journal rather than to dbus[1] using
the 'OPENBMC_MESSAGE_ID' identifier. Add support and test cases
for this as a meson option.

[1]: https://github.com/openbmc/docs/blob/master/designs/event-logging.md#phosphor-logging

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

show more ...

9ca4d13731-Oct-2024 Patrick Williams <patrick@stwcx.xyz>

manager: use new Logging.Cleared event

Modify the internal manager support for creating internal events
to be able to support the sdbusplus generated events. Transition
from the local Logging.Error

manager: use new Logging.Cleared event

Modify the internal manager support for creating internal events
to be able to support the sdbusplus generated events. Transition
from the local Logging.Error.LogsCleared to the global Logging.Cleared
event. Clean up references to the old event.

Tested:
```
$ busctl --user call xyz.openbmc_project.Logging /xyz/openbmc_project/logging xyz.openbmc_project.Collection.DeleteAll DeleteAll
$ busctl --user introspect xyz.openbmc_project.Logging /xyz/openbmc_project/logging/entry/1 -l | cat
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
xyz.openbmc_project.Logging.Entry interface - - -
.GetEntry method - h -
.AdditionalData property as 5 "NUMBER_OF_LOGS=210" "_CODE_FILE=../log_manager.hpp" "_CODE_FUNC=virtual void phosphor::logging::Manager::deleteAll()" "_CODE_LINE=361" "_PID=3318436" emits-change writable
.EventId property s "" emits-change writable
.Id property u 1 emits-change writable
.Message property s "xyz.openbmc_project.Logging.Cleared" emits-change writable
.Resolution property s "" emits-change writable
.Resolved property b false emits-change writable
.ServiceProviderNotify property s "xyz.openbmc_project.Logging.Entry.Notify.NotSupported" emits-change writable
.Severity property s "xyz.openbmc_project.Logging.Entry.Level.Informational" emits-change writable
.Timestamp property t 1730408674348 emits-change writable
.UpdateTimestamp property t 1730408674348 emits-change writable
```

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

show more ...

247fed6031-Oct-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: commit: extract source location information and add to event

sdbusplus will add PID and std::source_location information, from
the event origination point, to the event. Extract this and add
i

lg2: commit: extract source location information and add to event

sdbusplus will add PID and std::source_location information, from
the event origination point, to the event. Extract this and add
it to the event.

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

show more ...

f0af358f10-Oct-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: commit: add methods for new sdbusplus events

Add implementations and test cases for the `lg2::commit` functions.

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

lg2: commit: add methods for new sdbusplus events

Add implementations and test cases for the `lg2::commit` functions.

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

show more ...

e001cd7907-Oct-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: commit: add stubs to support new sdbusplus events

Create empty stubs for the commit functions from the new event
log design[1].

[1]: https://github.com/openbmc/docs/blob/master/designs/event-l

lg2: commit: add stubs to support new sdbusplus events

Create empty stubs for the commit functions from the new event
log design[1].

[1]: https://github.com/openbmc/docs/blob/master/designs/event-logging.md

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

show more ...

4e1456e403-Oct-2024 Patrick Williams <patrick@stwcx.xyz>

elog: ensure new sdbusplus events cannot be committed directly

sdbusplus events should not be committed in the old way, because
they have their metadata directly in the class rather than using
the s

elog: ensure new sdbusplus events cannot be committed directly

sdbusplus events should not be committed in the old way, because
they have their metadata directly in the class rather than using
the side-band metadata YAML (from phosphor-logging). Add compile-time
asserts to ensure they cannot be used with the older interfaces.

Tested:

Create a simple test:
```
phosphor::logging::report<
sdbusplus::event::xyz::openbmc_project::Logging::Cleared>();
```

Which fails to compile as follows:
```
In file included from ../test/basic_event_commit.cpp:3:
../lib/include/phosphor-logging/elog.hpp: In instantiation of ‘uint32_t phosphor::logging::report(Args ...) [with T = sdbusplus::event::xyz::openbmc_project::Logging::Cleared; Args = {}; uint32_t = unsigned int]’:
../test/basic_event_commit.cpp:13:66: required from here
../lib/include/phosphor-logging/elog.hpp:205:15: error: static assertion failed: T must NOT be an sdbusplus::generated_event
205 | !std::is_base_of_v<sdbusplus::exception::generated_event<T>, T>,
```

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

show more ...


/openbmc/phosphor-logging/config/config.h.meson
/openbmc/phosphor-logging/config_main.h
/openbmc/phosphor-logging/elog_entry.cpp
/openbmc/phosphor-logging/elog_serialize.hpp
/openbmc/phosphor-logging/extensions.cpp
/openbmc/phosphor-logging/extensions.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/entry_points.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/meson.build
/openbmc/phosphor-logging/extensions/openpower-pels/paths.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_paths.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pldm_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/gen/meson.build
include/phosphor-logging/elog.hpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/log_manager_main.cpp
/openbmc/phosphor-logging/meson.build
/openbmc/phosphor-logging/paths.cpp
/openbmc/phosphor-logging/paths.hpp
/openbmc/phosphor-logging/test/common.cpp
/openbmc/phosphor-logging/test/elog_errorwrap_test.hpp
/openbmc/phosphor-logging/test/elog_quiesce_test.cpp
/openbmc/phosphor-logging/test/elog_update_ts_test.cpp
/openbmc/phosphor-logging/test/extensions_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/bcd_time_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/device_callouts_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/meson.build
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_paths.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/private_header_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
7576224a03-Sep-2024 Patrick Williams <patrick@stwcx.xyz>

meson: switch code dependency to libsystemd

For a while now systemd has packaged a separate `libsystemd`. For
meson dependency, `systemd` should be used when looking for systemd
service file paths

meson: switch code dependency to libsystemd

For a while now systemd has packaged a separate `libsystemd`. For
meson dependency, `systemd` should be used when looking for systemd
service file paths and `libsystemd` should be used for `sd_*` functions.

Update the dependency accordingly.

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

show more ...

075c792316-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

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

show more ...


/openbmc/phosphor-logging/.clang-format
/openbmc/phosphor-logging/config/meson.build
/openbmc/phosphor-logging/elog_block.hpp
/openbmc/phosphor-logging/elog_entry.hpp
/openbmc/phosphor-logging/elog_meta.cpp
/openbmc/phosphor-logging/elog_meta.hpp
/openbmc/phosphor-logging/elog_serialize.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_watcher.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/mru.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pldm_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pldm_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/repository.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/section_header.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/severity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/severity.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/temporary_file.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data_json.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data_json.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
include/phosphor-logging/lg2/conversion.hpp
lg2_logger.cpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/logging_test.cpp
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.cpp
/openbmc/phosphor-logging/test/elog_errorwrap_test.hpp
/openbmc/phosphor-logging/test/openpower-pels/device_callouts_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/failing_mtms_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/host_notifier_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_callout_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/user_data_test.cpp
da063a9c13-Jul-2024 Patrick Williams <patrick@stwcx.xyz>

Remove lg2 template deduction guides

Deduction guides for the base 'log' class are unnecessary and unused,
and deduction guides for the level-types already exist. Remove the
unused ones.

Signed-of

Remove lg2 template deduction guides

Deduction guides for the base 'log' class are unnecessary and unused,
and deduction guides for the level-types already exist. Remove the
unused ones.

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

show more ...

5bc2653310-Apr-2024 Arya K Padman <aryakpadman@gmail.com>

PEL: Changing the remaining traces to lg2 style

Some of the logging traces of PEL files still uses old style of logging.

Changing the remaining traces in PEL files to lg2 style of logging.Some
of t

PEL: Changing the remaining traces to lg2 style

Some of the logging traces of PEL files still uses old style of logging.

Changing the remaining traces in PEL files to lg2 style of logging.Some
of the traces in phosphor logging code which use the old style is also
considered.

Change-Id: I0daf9589af443881cb61730047c23db17fdec2c3
Signed-off-by: Arya K Padman <aryakpadman@gmail.com>

show more ...


/openbmc/phosphor-logging/docs/structured-logging.md
/openbmc/phosphor-logging/elog_entry.cpp
/openbmc/phosphor-logging/elog_serialize.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/entry_points.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/failing_mtms.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/generic.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/log_id.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/mru.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/phal_service_actions.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/O_component_ids.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
elog.cpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/meson.build
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_callout_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_callouts_test.cpp
b6ed39fa26-Feb-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: allow enumeration formatting

A good amount of code is using something like `std::to_underlying` to
convert enums to a value for output with lg2. Add support directly in
the library.

Tested:
M

lg2: allow enumeration formatting

A good amount of code is using something like `std::to_underlying` to
convert enums to a value for output with lg2. Add support directly in
the library.

Tested:
Modified phosphor-health-monitor with one enum with a `to_string`
conversion and one without:
```
<7> TYPE=CPU, NAME=CPU SUBTYPE=Enum(1) PATH=, FREQ=1, WSIZE=120
<7> TYPE=CPU, NAME=CPU_Kernel SUBTYPE=Enum(0) PATH=, FREQ=1, WSIZE=120
```

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

show more ...

c2c32a2a26-Feb-2024 Patrick Williams <patrick@stwcx.xyz>

lg2: allow type output customizations

Allow lg2 output for custom types where the type has a `to_string`
function defined per ADL lookup rules.

Tested:
Modified phosphor-health-monitor to have a `t

lg2: allow type output customizations

Allow lg2 output for custom types where the type has a `to_string`
function defined per ADL lookup rules.

Tested:
Modified phosphor-health-monitor to have a `to_string` for local
enumerations.
```
<7> TYPE=CPU, NAME=CPU SUBTYPE=CPU PATH=, FREQ=1, WSIZE=120
<7> TYPE=CPU, NAME=CPU_Kernel SUBTYPE=CPU_Kernel PATH=, FREQ=1, WSIZE=120
```

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

show more ...

6ddbf69e05-Sep-2023 Willy Tu <wltu@google.com>

Remove SDBUSPP_REMOVE_DEPRECATED_NAMESPACE

Fix the code to support new sdbusplus error without
SDBUSPP_REMOVE_DEPRECATED_NAMESPACE.

Change-Id: I12713ec1757d3835e1acf07c7abf409ff97615e1
Signed-off-b

Remove SDBUSPP_REMOVE_DEPRECATED_NAMESPACE

Fix the code to support new sdbusplus error without
SDBUSPP_REMOVE_DEPRECATED_NAMESPACE.

Change-Id: I12713ec1757d3835e1acf07c7abf409ff97615e1
Signed-off-by: Willy Tu <wltu@google.com>

show more ...


/openbmc/phosphor-logging/.clang-format
/openbmc/phosphor-logging/callouts/callout_test.cpp
/openbmc/phosphor-logging/elog_block.hpp
/openbmc/phosphor-logging/elog_entry.cpp
/openbmc/phosphor-logging/elog_entry.hpp
/openbmc/phosphor-logging/elog_meta.cpp
/openbmc/phosphor-logging/elog_meta.hpp
/openbmc/phosphor-logging/elog_serialize.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/entry_points.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/failing_mtms.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/generic.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/phal_service_actions.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/phal_service_actions.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
/openbmc/phosphor-logging/gen/meson.build
/openbmc/phosphor-logging/gen/xyz/openbmc_project/Logging/Internal/Manager/meson.build
elog.cpp
include/phosphor-logging/elog.hpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/logging_test.cpp
/openbmc/phosphor-logging/meson.options
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.cpp
/openbmc/phosphor-logging/test/openpower-pels/host_notifier_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/tools/phosphor-logging/templates/elog-gen-template.mako.hpp
/openbmc/phosphor-logging/tools/phosphor-logging/templates/elog-process-metadata.mako.cpp
230f9f9420-Jul-2023 Josh Lehan <krellan@google.com>

lg2: Add mutex to avoid stderr line corruption

Use of a mutex, along with flushing after every line, prevents threads
in multithreaded programs from corrupting each other's stderr logging
lines. As

lg2: Add mutex to avoid stderr line corruption

Use of a mutex, along with flushing after every line, prevents threads
in multithreaded programs from corrupting each other's stderr logging
lines. As for the D-Bus journal messages, they are already atomic, not
needing this fix.

Tested: The corruption appears fixed
https://gist.github.com/Krellan/d5d9942cb5ab405c9689e4eb4bb75cf0

Change-Id: I1db88139406eb617aa713740d5ccb6c9420ca773
Signed-off-by: Josh Lehan <krellan@google.com>

show more ...

7f5e441023-Jun-2023 Patrick Williams <patrick@stwcx.xyz>

lg2: simplify source_location for clang-16

As of clang-16, `source_location` is fully supported, so we do not need
to use the `experimental::source_location` workarounds anymore.
Eliminate them and

lg2: simplify source_location for clang-16

As of clang-16, `source_location` is fully supported, so we do not need
to use the `experimental::source_location` workarounds anymore.
Eliminate them and use `std::source_location` directly rather than the
`lg2::source_location` alias.

Tested: Compiled the repository with CXX=clang++.

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

show more ...


/openbmc/phosphor-logging/extensions/openpower-pels/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/meson.build
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_rules.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/repository.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data_json.hpp
include/phosphor-logging/lg2.hpp
include/phosphor-logging/lg2/conversion.hpp
include/phosphor-logging/lg2/logger.hpp
include/phosphor-logging/lg2/source_location.hpp
include/phosphor-logging/meson.build
lg2_logger.cpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/subprojects/libpldm.wrap
/openbmc/phosphor-logging/test/openpower-pels/bcd_time_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/log_id_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/temporary_file_test.cpp
ac1ba3f210-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: I077deb6e98025e4e8c6abd4d039f9af4db19342b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/phosphor-logging/.clang-format
/openbmc/phosphor-logging/README.md
/openbmc/phosphor-logging/dist/dbus/xyz.openbmc_project.Logging.service
/openbmc/phosphor-logging/dist/meson.build
/openbmc/phosphor-logging/dist/xyz.openbmc_project.Logging.service
/openbmc/phosphor-logging/docs/structured-logging.md
/openbmc/phosphor-logging/elog_entry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/entry_points.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_header.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/failing_mtms.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/failing_mtms.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/generic.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/journal.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/meson.build
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/O_component_ids.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/run-ci.sh
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/tools/validate_registry.py
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/section.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data_json.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.hpp
/openbmc/phosphor-logging/gen/meson.build
/openbmc/phosphor-logging/gen/xyz/openbmc_project/Logging/Internal/Manager/meson.build
include/phosphor-logging/lg2/conversion.hpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/meson.build
/openbmc/phosphor-logging/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-logging/test/openpower-pels/data_interface_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/host_notifier_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/json_utils_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_utils.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/service_indicators_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/util.cpp
/openbmc/phosphor-logging/util.hpp
7691290f20-Dec-2022 George Liu <liuxiwei@inspur.com>

lg2: Support sdbusplus::message::object_path type

Currently the sdbusplus::message::object_path type is not supported.
To print the sdbusplus::message::object_path type, we need to
explicitly obtain

lg2: Support sdbusplus::message::object_path type

Currently the sdbusplus::message::object_path type is not supported.
To print the sdbusplus::message::object_path type, we need to
explicitly obtain the string.

Resolves openbmc/phosphor-logging#25.

Without this patch:
```
sdbusplus::message::object_path objectPath;
info("objectPath: {PATH}", "PATH", objectPath.str);
```

With this patch:
```
sdbusplus::message::object_path objectPath;
info("objectPath: {PATH}", "PATH", objectPath);
```

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

show more ...


/openbmc/phosphor-logging/README.md
/openbmc/phosphor-logging/callouts/callouts.py
/openbmc/phosphor-logging/docs/structured-logging.md
/openbmc/phosphor-logging/extensions/openpower-pels/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/O_component_ids.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/run-ci.sh
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/registry_example.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/tools/process_registry.py
/openbmc/phosphor-logging/extensions/openpower-pels/setup.py
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.hpp
/openbmc/phosphor-logging/gen/run-ci
include/phosphor-logging/lg2/conversion.hpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/tools/elog-gen.py
/openbmc/phosphor-logging/tools/example/xyz/openbmc_project/Example/Bar.metadata.yaml
/openbmc/phosphor-logging/tools/example/xyz/openbmc_project/Example/Device.metadata.yaml
/openbmc/phosphor-logging/tools/example/xyz/openbmc_project/Example/Elog.metadata.yaml
/openbmc/phosphor-logging/tools/example/xyz/openbmc_project/Example/Foo.metadata.yaml
/openbmc/phosphor-logging/tools/meson.build
/openbmc/phosphor-logging/tools/phosphor-logging/templates/meson.build
/openbmc/phosphor-logging/yaml/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml
c107f19105-Oct-2022 Patrick Williams <patrick@stwcx.xyz>

lg2: minor tweak for readability

clang-format seems to have damaged the readability of one of the
C++20 Concepts. Add parens to improve the readability.

Signed-off-by: Patrick Williams <patrick@st

lg2: minor tweak for readability

clang-format seems to have damaged the readability of one of the
C++20 Concepts. Add parens to improve the readability.

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

show more ...

2544b41904-Oct-2022 Patrick Williams <patrick@stwcx.xyz>

clang-format: update with latest

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


/openbmc/phosphor-logging/.clang-format
/openbmc/phosphor-logging/callouts/callout_test.cpp
/openbmc/phosphor-logging/callouts/callouts.py
/openbmc/phosphor-logging/elog_meta.hpp
/openbmc/phosphor-logging/elog_serialize.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/additional_data.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/bcd_time.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_watcher.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/device_callouts.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/entry_points.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/event_logger.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/json_utils.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/log_id.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_registry/__init__.py
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pldm_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pldm_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/tools/process_registry.py
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/repository.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/section_header.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/service_indicators.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/setup.py
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/stream.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/temporary_file.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/temporary_file.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data_json.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
/openbmc/phosphor-logging/gen/meson.build
/openbmc/phosphor-logging/gen/regenerate-meson
/openbmc/phosphor-logging/gen/xyz/openbmc_project/Logging/Internal/Manager/meson.build
/openbmc/phosphor-logging/gen/xyz/openbmc_project/Logging/Internal/meson.build
elog.cpp
include/phosphor-logging/elog.hpp
include/phosphor-logging/lg2.hpp
include/phosphor-logging/lg2/concepts.hpp
include/phosphor-logging/lg2/conversion.hpp
include/phosphor-logging/lg2/flags.hpp
include/phosphor-logging/lg2/header.hpp
include/phosphor-logging/lg2/logger.hpp
include/phosphor-logging/log.hpp
include/phosphor-logging/test/sdjournal_mock.hpp
lg2_logger.cpp
sdjournal.cpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/log_manager_main.cpp
/openbmc/phosphor-logging/logging_test.cpp
/openbmc/phosphor-logging/meson.build
/openbmc/phosphor-logging/phosphor-rsyslog-config/main.cpp
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.cpp
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.hpp
/openbmc/phosphor-logging/test/elog_errorwrap_test.hpp
/openbmc/phosphor-logging/test/elog_quiesce_test.cpp
/openbmc/phosphor-logging/test/extensions_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/device_callouts_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/fru_identity_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/host_notifier_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/meson.build
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/mtms_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/private_header_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/real_pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/repository_test.cpp
/openbmc/phosphor-logging/test/remote_logging_tests.hpp
/openbmc/phosphor-logging/test/serialization_tests.hpp
/openbmc/phosphor-logging/tools/elog-gen.py
/openbmc/phosphor-logging/yaml/xyz/openbmc_project/Logging/Internal/Manager.interface.yaml
45e8352122-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: Ibc25db433a6926f7ee43ea83312c3ac14f480c33

show more ...


/openbmc/phosphor-logging/OWNERS
/openbmc/phosphor-logging/README.md
/openbmc/phosphor-logging/elog_block.hpp
/openbmc/phosphor-logging/elog_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_watcher.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/fru_identity.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/meson.build
/openbmc/phosphor-logging/extensions/openpower-pels/mtms.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_registry/__init__.py
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/B_component_ids.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/O_component_ids.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/sbe_ffdc_handler.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/setup.py
/openbmc/phosphor-logging/extensions/openpower-pels/severity.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/severity.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
include/phosphor-logging/elog.hpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/log_manager_main.cpp
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.cpp
/openbmc/phosphor-logging/phosphor-rsyslog-config/server-conf.hpp
/openbmc/phosphor-logging/test/elog_errorwrap_test.hpp
/openbmc/phosphor-logging/test/elog_quiesce_test.cpp
/openbmc/phosphor-logging/test/extensions_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/data_interface_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/pel_manager_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/severity_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/test/remote_logging_test_config.cpp
/openbmc/phosphor-logging/test/remote_logging_tests.hpp
/openbmc/phosphor-logging/test/serialization_tests.hpp
ea06f8ec25-Mar-2022 Zane Shelley <zshelle@us.ibm.com>

Enable lg2 log output to stderr in OpenBMC CI test

Similar to printing logs to stderr in a TTY, output to stderr can be
enabled during OpenBMC CI test by setting the `LG2_FORCE_STDERR`
environment v

Enable lg2 log output to stderr in OpenBMC CI test

Similar to printing logs to stderr in a TTY, output to stderr can be
enabled during OpenBMC CI test by setting the `LG2_FORCE_STDERR`
environment variable to any value.

Using meson, this can be done with something like:

test('test_name', executable(...), env: ['LG2_FORCE_STDERR=yes'])

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I0323fbb75fe211148ec4dc7e263fe18aabb8ffc6

show more ...


/openbmc/phosphor-logging/docs/structured-logging.md
/openbmc/phosphor-logging/extensions/openpower-pels/ascii_string.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callout.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/callouts.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/dbus_types.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/extended_user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/meson.build
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/private_header.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/trace.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_data.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
lg2_logger.cpp
/openbmc/phosphor-logging/log_manager.hpp
/openbmc/phosphor-logging/meson.build
/openbmc/phosphor-logging/subprojects/CLI11.wrap
/openbmc/phosphor-logging/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-logging/subprojects/pldm.wrap
/openbmc/phosphor-logging/subprojects/sdbusplus.wrap
/openbmc/phosphor-logging/subprojects/sdeventplus.wrap
/openbmc/phosphor-logging/test/openpower-pels/ascii_string_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/registry_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/user_header_test.cpp
7460ce0203-Mar-2022 Patrick Williams <patrick@stwcx.xyz>

lg2: add experimental::source_location symbols on GCC

When we compile with a compiler that supports the C++20 source_location,
we use that support and do not support the older experimental version.

lg2: add experimental::source_location symbols on GCC

When we compile with a compiler that supports the C++20 source_location,
we use that support and do not support the older experimental version.
Recent versions of GCC support it but Clang does not. This exposes an
issue when attempting to link a GCC-compiled lg2 with a Clang-compiled
application (missing symbol for experimental version).

Add a no-op symbol for experimental::source_location when the compiler
supports std::source_location. This allows the Clang-compiled
applications to successfully compile and link, but they will lose out on
the lg2 functionality. The primary use-case of this is to compile with
Clang in CI in order to get signal on the stricter warnings that Clang
often has, so functionality is not necessary.

Tested:

Built with GCC and confirmed additional symbol for
experimental::source_location support.

```
$ nm lib/libphosphor_logging.so.1.0.0 --defined-only -C | grep lg2::details::do_log
0000000000004520 T lg2::details::do_log(lg2::level, std::experimental::fundamentals_v2::source_location const&, char const*, ...)
0000000000004aa0 T lg2::details::do_log(lg2::level, std::source_location const&, char const*, ...)
0000000000003682 t lg2::details::do_log(lg2::level, std::source_location const&, char const*, ...) [clone .cold]
```

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

show more ...

31d78f7707-Feb-2022 Stanley Chu <yschu@nuvoton.com>

Fix wrong type of TRANSACTION_ID in journal metadata

In the log API, it prints message to systemd journal and
also stores TRANSACTION_ID metadata with its value as %lld.
However, the transaction id

Fix wrong type of TRANSACTION_ID in journal metadata

In the log API, it prints message to systemd journal and
also stores TRANSACTION_ID metadata with its value as %lld.
However, the transaction id is acquired from sdbusplus::server::
transaction::get_id(), which is a uint64_t.
The type of TRANSACTION_ID metadata should be changed to %llu,
otherwise phosphor::logging::internal::Manager::_commit() may not
find the matched journal entry.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Change-Id: I2a70ae836ae33006a043569d2e3a692fcece7303

show more ...


/openbmc/phosphor-logging/README.md
/openbmc/phosphor-logging/elog_entry.hpp
/openbmc/phosphor-logging/elog_serialize.cpp
/openbmc/phosphor-logging/elog_serialize.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/README.md
/openbmc/phosphor-logging/extensions/openpower-pels/ascii_string.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/data_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/fapi_data_process.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_interface.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/host_notifier.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/log_id.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/log_id.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/manager.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_entry.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/pel_values.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/registry/ComponentIDs.md
/openbmc/phosphor-logging/extensions/openpower-pels/registry/message_registry.json
/openbmc/phosphor-logging/extensions/openpower-pels/registry/schema/schema.json
/openbmc/phosphor-logging/extensions/openpower-pels/repository.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/repository.hpp
/openbmc/phosphor-logging/extensions/openpower-pels/src.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/tools/peltool.cpp
/openbmc/phosphor-logging/extensions/openpower-pels/user_header.cpp
include/phosphor-logging/log.hpp
/openbmc/phosphor-logging/log_manager.cpp
/openbmc/phosphor-logging/log_manager_main.cpp
/openbmc/phosphor-logging/test/elog_quiesce_test.cpp
/openbmc/phosphor-logging/test/elog_update_ts_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/host_notifier_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/log_id_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/mocks.hpp
/openbmc/phosphor-logging/test/openpower-pels/pel_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/repository_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/src_test.cpp
/openbmc/phosphor-logging/test/openpower-pels/user_header_test.cpp
/openbmc/phosphor-logging/test/serialization_test_properties.cpp

12