You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "W-M-R (via GitHub)" <gi...@apache.org> on 2024/11/11 14:10:53 UTC

[PR] gprof: Add a configuration dependency [nuttx]

W-M-R opened a new pull request, #14725:
URL: https://github.com/apache/nuttx/pull/14725

   arm-none-eabi-g++: error: -pg and -fomit-frame-pointer are incompatible
   
   *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   arm-none-eabi-g++: error: -pg and -fomit-frame-pointer are incompatible
   ## Impact
   
   *Update this section, where applicable, on how change affects users,
    build process, hardware, documentation, security, compatibility, etc.*
   
   ## Testing
   
   *Update this section with details on how did you verify the change,
    what Host was used for build (OS, CPU, compiler, ..), what Target was
    used for verification (arch, board:config, ..), etc. Providing build
    and runtime logs from before and after change is highly appreciated.*
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] gprof: Add a configuration dependency [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #14725:
URL: https://github.com/apache/nuttx/pull/14725


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] gprof: Add a configuration dependency [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #14725:
URL: https://github.com/apache/nuttx/pull/14725#discussion_r1836741846


##########
sched/Kconfig:
##########
@@ -1377,10 +1377,12 @@ config SCHED_GPROF
 		cause the linker to include the gmon.out file in the final
 		executable.
 		Add the "-pg" parameter to the Makefile when compiling to obtain
-		the function call graph of the specified module.
+		the function call graph of the specified module.If you do this,
+		please enable "CONFIG_FRAME_POINTER"
 
 config SCHED_GPROF_ALL
 	bool "Enable gprof call graph for all modules"
+	depends on FRAME_POINTER

Review Comment:
   why not add to SCHED_GPROF



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] gprof: Add a configuration dependency [nuttx]

Posted by "hartmannathan (via GitHub)" <gi...@apache.org>.
hartmannathan commented on code in PR #14725:
URL: https://github.com/apache/nuttx/pull/14725#discussion_r1836835985


##########
sched/Kconfig:
##########
@@ -1377,10 +1377,12 @@ config SCHED_GPROF
 		cause the linker to include the gmon.out file in the final
 		executable.
 		Add the "-pg" parameter to the Makefile when compiling to obtain
-		the function call graph of the specified module.
+		the function call graph of the specified module.If you do this,

Review Comment:
   ```suggestion
   		the function call graph of the specified module. If you do this,
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] gprof: Add a configuration dependency [nuttx]

Posted by "W-M-R (via GitHub)" <gi...@apache.org>.
W-M-R commented on code in PR #14725:
URL: https://github.com/apache/nuttx/pull/14725#discussion_r1837441534


##########
sched/Kconfig:
##########
@@ -1377,10 +1377,12 @@ config SCHED_GPROF
 		cause the linker to include the gmon.out file in the final
 		executable.
 		Add the "-pg" parameter to the Makefile when compiling to obtain
-		the function call graph of the specified module.
+		the function call graph of the specified module.If you do this,
+		please enable "CONFIG_FRAME_POINTER"
 
 config SCHED_GPROF_ALL
 	bool "Enable gprof call graph for all modules"
+	depends on FRAME_POINTER

Review Comment:
   Opening SCHED_GPROF alone does not need to rely on "FRAME_POINTER", it is implemented by directly obtaining the pc value



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org