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

[slave.mk] Fix DEB_BUILD_OPTIONS passing #2473

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

stepanblyschak
Copy link
Collaborator

Signed-off-by: Stepan Blyschak stepanb@mellanox.com

- What I did
Image build with SONIC_PROFILING_ON=y fails, this commit tries to fix this

- How I did it
Don't quote "nostrip noopt", it is quoted when passing to make.

- How to verify it
What I observed before:

$ make ... SONIC_PROFILING_ON=y target/debs/<some-deb>
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "mellanox"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "24"
"SONIC_CONFIG_MAKE_JOBS"          : "48"
"USERNAME"                        : "admin"
"PASSWORD"                        : "YourPaSsWoRd"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : "y"
"ROUTING_STACK"                   : "quagga"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : ""
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : "y"
[ FAIL LOG START ] [ target/debs/applibs_1.mlnx.4.3.0132_amd64.deb ]
/bin/bash: line 9: noopt: command not found
[  FAIL LOG END  ] [ target/debs/applibs_1.mlnx.4.3.0132_amd64.deb ]
slave.mk:266: recipe for target 'target/debs/applibs_1.mlnx.4.3.0132_amd64.deb' failed
make: *** [target/debs/applibs_1.mlnx.4.3.0132_amd64.deb] Error 1

Why it happened:
Running make with '-n'

...
DEB_BUILD_OPTIONS=""nostrip noopt"" make DEST=/sonic/target/debs ...

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
@lguohan
Copy link
Collaborator

lguohan commented Jan 22, 2019

retest this please

1 similar comment
@lguohan
Copy link
Collaborator

lguohan commented Jan 23, 2019

retest this please

@lguohan lguohan merged commit c998dc8 into sonic-net:master Jan 24, 2019
@stepanblyschak stepanblyschak deleted the fix_profiling_on branch September 23, 2022 13:30
tshalvi pushed a commit to tshalvi/sonic-buildimage that referenced this pull request Dec 20, 2022
…r queue/pg counters (sonic-net#2473)

This reverts commit f0f1eb4.

- What I did
Currently, in SONiC all ports queue and pg counters are created by default with the max possible amount of counters.
This feature changes this behavior to poll only configured counters provided by the config DB BUFFER_PG and BUFFER_QUEUE tables.
If no tables are present in the DB, no counters will be created for ports.
Filter the unwanted queues/pgs returned by SAI API calls and skip the creation of these queue/pg counters.
Also, allow creating/removing counters on runtime if buffer PG/Queue is configured or removed.

- Why I did it
Improve performance by filtering unconfigured queue/pg counters on init.

- How I verified it
Check after enabling the counters, if configured counters are created in Counters DB according to the configurations.
Add/Remove buffer PG/Queue configurations and observe the corresponding counters created/removed accordingly.
New UT was added to verify this flow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants