Skip to content

Add redfish support for MPx tracelog collection#66

Open
khashaik wants to merge 4 commits into
integ_sp8from
tbai
Open

Add redfish support for MPx tracelog collection#66
khashaik wants to merge 4 commits into
integ_sp8from
tbai

Conversation

@khashaik
Copy link
Copy Markdown
Collaborator

Add support to add TraceLogs under "redfish/v1/Systems/system/LogServices/"

  • Introduced new Redfish routes to support MPX trace log functionality:
    • requestRoutesTraceLogCollect(app)
    • requestRoutesTraceLogsService(app)
    • requestRoutesTraceLogsEntryCollection(app)
    • requestRoutesTraceLogsFile(app)
  • Enables trace log collection and retrieval through TBAI service using Redfish APIs.

@khashaik khashaik requested a review from raja-gade May 19, 2026 08:54
khashaik added 4 commits May 19, 2026 10:30
 - Tested on Congo and Morocco platforms

Signed-off-by: Khader Basha Shaik <khaderbasha.shaik@amd.com>
 - Tested on Congo and Morocco platforms
 Signed-off-by: Khader Basha Shaik <khaderbasha.shaik@amd.com>
 - Tested on Congo and Morocco platforms
 Signed-off-by: Khader Basha Shaik <khaderbasha.shaik@amd.com>
 - Tested on Congo and Morocco platforms
 Signed-off-by: Khader Basha Shaik <khaderbasha.shaik@amd.com>
Copy link
Copy Markdown
Collaborator

@raja-gade raja-gade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

requestRoutesTraceLogCollect(app);
requestRoutesTraceLogsService(app);
requestRoutesTraceLogsEntryCollection(app);
requestRoutesTraceLogsFile(app);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requestRoutesTraceLogClear() is missing?

Copy link
Copy Markdown
Collaborator

@raja-gade raja-gade May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basha updated that he will do it in separate PR

Comment thread meson.options
option(
'redfish-trace-logger',
type: 'feature',
value: 'enabled',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed over the teams, please submit a new PR for adding a condition to check if this feature is enabled or not

tracelogger["@odata.id"] =
std::format("/redfish/v1/Systems/{}/LogServices/TraceLogs",
BMCWEB_REDFISH_SYSTEM_URI_NAME);
logServiceArray.emplace_back(std::move(tracelogger));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please apply clang format here

@raja-gade raja-gade requested review from aasboddu and srgovard May 27, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants