Skip to content

Do not fail if requested cstack is not supported#50

Merged
jbachorik merged 1 commit into
mainfrom
jb/dwarf_fallback
Dec 7, 2023
Merged

Do not fail if requested cstack is not supported#50
jbachorik merged 1 commit into
mainfrom
jb/dwarf_fallback

Conversation

@jbachorik
Copy link
Copy Markdown
Collaborator

@jbachorik jbachorik commented Dec 6, 2023

What does this PR do?:
It relaxes the checks for the validity of the requested 'cstack' value.
If the requested stack unwinding is not available default to 'no' and log a warning instead of disabling profiling.

Motivation:
The motivation is to be more lenient in cases when eg. the recomended cstack=dwarf is used but DWARF is not available.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA Ticket: PROF-8707

Unsure? Have a question? Request a review!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 6, 2023

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Warnings (2)

Style Violations (156)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 6, 2023

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az1198-369
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 clean all
Clang Version:Ubuntu clang version 14.0.0-1ubuntu1.1
Date:Wed Dec 6 11:40:08 2023

Bug Summary

Bug TypeQuantityDisplay?
All Bugs6
Logic error
Assigned value is garbage or undefined1
Dereference of null pointer2
Result of operation is garbage or undefined1
Unused code
Dead initialization1
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorAssigned value is garbage or undefineddwarf.cppparseInstructions23120
Unused codeDead initializationlivenessTracker.cppcleanup_table451
Unused codeDead nested assignmentvmStructs.cppcheckNativeBinding6721
Logic errorDereference of null pointerflightRecorder.cppflush14008
Logic errorDereference of null pointersafeAccess.hload3518
Logic errorResult of operation is garbage or undefineddwarf.hgetSLeb12325

@jbachorik jbachorik marked this pull request as ready for review December 6, 2023 11:41
@jbachorik jbachorik merged commit 81e7f38 into main Dec 7, 2023
@jbachorik jbachorik deleted the jb/dwarf_fallback branch December 11, 2023 11:26
@jbachorik jbachorik added this to the 0.91.0 milestone Dec 18, 2023
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