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

chore(mme): Remove unused trace defines #12055

Merged
merged 5 commits into from Mar 15, 2022

Conversation

themarwhal
Copy link
Member

@themarwhal themarwhal commented Mar 10, 2022

Signed-off-by: GitHub noreply@github.com

Summary

Address #11898

Remove the following defines marked as "to be removed"

  • S1AP_DEBUG_LIST (false logic)
  • SCTP_DUMP_LIST (false logic)
  • TRACE_HASHTABLE (false logic)
  • TRACE_3GPP_SPEC (true logic)

Test Plan

make build_oai
make test_oai

Additional Information

  • This change is backwards-breaking

@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Mar 10, 2022
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Mar 10, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2022

feg-workflow

    2 files  202 suites   33s ⏱️
363 tests 363 ✔️ 0 💤 0
377 runs  377 ✔️ 0 💤 0

Results for commit a3d30bc.

♻️ This comment has been updated with latest results.

@themarwhal themarwhal marked this pull request as ready for review March 10, 2022 17:05
@themarwhal themarwhal requested review from a team and ulaskozat March 10, 2022 17:05
@themarwhal
Copy link
Member Author

@ssanadhya Please let me know if there are other flags to be removed / cleaned up as well. The GitHub issue also mentions TRACE_HASHTABLE and TRACE_3GPP_SPEC but I was not sure about those.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2022

agw-workflow

    2 files      2 suites   3m 28s ⏱️
554 tests 545 ✔️ 9 💤 0
555 runs  546 ✔️ 9 💤 0

Results for commit a3d30bc.

♻️ This comment has been updated with latest results.

UE_LIST_OUT("SCTP stream send: 0x%04x", ue_ref->sctp_stream_send);
#endif
}
void __attribute__((unused)) * *unused_resultP) {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the purpose of this empty function? This can be removed since it is only called in s1ap_dump_enb, which is also removed here.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah didn't realize it is now empty! Will remove this too.

@ssanadhya
Copy link
Collaborator

@ssanadhya Please let me know if there are other flags to be removed / cleaned up as well. The GitHub issue also mentions TRACE_HASHTABLE and TRACE_3GPP_SPEC but I was not sure about those.

@themarwhal , we can get rid of TRACE_HASHTABLE since it is always set to false and leading to no-op.
For TRACE_3GPP_SPEC, it will be good to remove the flag but keep the current default behavior in the macro definition here https://github.com/magma/magma/blob/master/lte/gateway/c/core/oai/lib/3gpp/3gpp_requirements.h#L41

@themarwhal
Copy link
Member Author

@ssanadhya Please let me know if there are other flags to be removed / cleaned up as well. The GitHub issue also mentions TRACE_HASHTABLE and TRACE_3GPP_SPEC but I was not sure about those.

@themarwhal , we can get rid of TRACE_HASHTABLE since it is always set to false and leading to no-op. For TRACE_3GPP_SPEC, it will be good to remove the flag but keep the current default behavior in the macro definition here https://github.com/magma/magma/blob/master/lte/gateway/c/core/oai/lib/3gpp/3gpp_requirements.h#L41

Thanks @ssanadhya ! Will clean those up as well.

@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Mar 10, 2022
@themarwhal themarwhal marked this pull request as draft March 11, 2022 12:37
@github-actions github-actions bot added the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Mar 11, 2022
@themarwhal themarwhal force-pushed the deprecate-trace branch 2 times, most recently from b695948 to be8ca40 Compare March 11, 2022 13:16
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
@github-actions github-actions bot removed the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Mar 11, 2022
@themarwhal themarwhal marked this pull request as ready for review March 11, 2022 14:13
Copy link
Contributor

@lionelgo lionelgo left a comment

Choose a reason for hiding this comment

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

You can also remove magma/lte/gateway/c/core/oai/include/3gpp_requirements_24.301.h

@pull-request-size pull-request-size bot added size/XXL Denotes a Pull Request that changes 1000+ lines. and removed size/L Denotes a Pull Request that changes 100-499 lines. labels Mar 11, 2022
@themarwhal
Copy link
Member Author

themarwhal commented Mar 11, 2022

You can also remove magma/lte/gateway/c/core/oai/include/3gpp_requirements_24.301.h

Actually, I will move this cleanup to another PR because removing this would remove a lot more macros.

Signed-off-by: GitHub <noreply@github.com>
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/XXL Denotes a Pull Request that changes 1000+ lines. labels Mar 11, 2022
@themarwhal themarwhal linked an issue Mar 11, 2022 that may be closed by this pull request
@themarwhal themarwhal enabled auto-merge (squash) March 11, 2022 20:31
Copy link
Collaborator

@ssanadhya ssanadhya left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks for the cleanup!

@themarwhal themarwhal merged commit 42df8a8 into magma:master Mar 15, 2022
@themarwhal themarwhal deleted the deprecate-trace branch March 15, 2022 17:51
ardzoht added a commit to ardzoht/magma that referenced this pull request Mar 16, 2022
* 'master' of github.com:magma/magma:
  chore: Mark nas_converter_test as manual until flakiness is addressed (magma#12130)
  chore(mme): address GH11898 (magma#12129)
  fix(agw): Update DNS resolvers for ec2 instance (magma#12045)
  feat(feg_relay): move session proxy to NH implementation (magma#11080)
  chore: Use per_file_copt for MME unit test flag (magma#12112)
  chore(mme): Remove unused trace defines (magma#12055)
  chore: experiment with only applying ASAN and LSAN to Magma C files (magma#12113)
  Revert "test(mme): Add injection of state loaded in S1AP state manager (magma#11456)" (magma#12121)
  chore: bump ssri (magma#12032)
  feat(dp): Add grant attempt count (magma#12101)
  fix(mme): Fix typing_extensions version dependency on magma_test (magma#12110)
ardzoht pushed a commit that referenced this pull request Mar 30, 2022
* chore(mme): Remove unused trace defines

Signed-off-by: GitHub <noreply@github.com>

* deprecate SCTP_DUMP_LIST

Signed-off-by: GitHub <noreply@github.com>

* chore(mme): remove TRACE_HASHTABLE

Signed-off-by: GitHub <noreply@github.com>

* chore(mme): remove TRACE_3GPP_SPEC

Signed-off-by: GitHub <noreply@github.com>

* remove unused macros

Signed-off-by: GitHub <noreply@github.com>
emakeev pushed a commit to emakeev/magma that referenced this pull request Aug 5, 2022
* chore(mme): Remove unused trace defines

Signed-off-by: GitHub <noreply@github.com>

* deprecate SCTP_DUMP_LIST

Signed-off-by: GitHub <noreply@github.com>

* chore(mme): remove TRACE_HASHTABLE

Signed-off-by: GitHub <noreply@github.com>

* chore(mme): remove TRACE_3GPP_SPEC

Signed-off-by: GitHub <noreply@github.com>

* remove unused macros

Signed-off-by: GitHub <noreply@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate c/core/oai CMake precompiler flags for tracing
3 participants