-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add asicdump tool to view asic state #116
Conversation
}; | ||
|
||
CmdOptions g_cmdOptions; | ||
std::map<sai_object_id_t, const TableMap*> g_oid_map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std:: [](start = 0, length = 5)
'std::' can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i use std:: every time in cpp
|
||
size_t max = 0; | ||
|
||
for (const auto&field: map) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a blank?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto &field
or
auto& field
|
||
int main(int argc, char ** argv) | ||
{ | ||
swss::Logger::getInstance().setMinPrio(swss::Logger::SWSS_DEBUG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swss::Logger::getInstance().setMinPrio(swss::Logger::SWSS_DEBUG); [](start = 4, length = 65)
Can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or change to NOTICE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i want log enter to be logged in main to know when new process started, i will add leter on other notice enter
@@ -1 +1 @@ | |||
SUBDIRS = meta lib vslib syncd player | |||
SUBDIRS = meta lib vslib syncd player asicdump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mellanox has a sdkdump to dump all sdk state, to differentiate with sdkdump, can we call it saidump? for the player, can we call it saiplayer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll change player to saiplayer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to change the name to saidump
since this is strictly combined with redis maybe sairedisdump and sairedisplayer ? |
No description provided.