Skip to content
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

Merged
merged 2 commits into from
Nov 9, 2016
Merged

Conversation

kcudnik
Copy link
Collaborator

@kcudnik kcudnik commented Nov 7, 2016

No description provided.

};

CmdOptions g_cmdOptions;
std::map<sai_object_id_t, const TableMap*> g_oid_map;
Copy link
Contributor

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.

Copy link
Collaborator Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

add a blank?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

??

Copy link
Contributor

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);
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

or change to NOTICE

Copy link
Collaborator Author

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
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

@lguohan lguohan left a 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

@kcudnik
Copy link
Collaborator Author

kcudnik commented Nov 8, 2016

since this is strictly combined with redis maybe sairedisdump and sairedisplayer ?

@stcheng stcheng merged commit e00e571 into sonic-net:master Nov 9, 2016
@kcudnik kcudnik deleted the asicdump branch February 15, 2017 18:40
jianyuewu pushed a commit to jianyuewu/sonic-sairedis that referenced this pull request Feb 7, 2025
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.

4 participants