You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2023/09/28 08:01:30 UTC

[GitHub] [nuttx] raiden00pl opened a new pull request, #10826: arch/nrf{52|53|91}: add support for up_perf

raiden00pl opened a new pull request, #10826:
URL: https://github.com/apache/nuttx/pull/10826

   ## Summary
   arch/nrf{52|53|91}: add support for up_perf
   ## Impact
   
   ## Testing
   CI
   


-- 
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


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   > CONFIG_ARCH_PERF_EVENTS is default y so this would be always included. This will be fixed in the next step with #10828
   
   let's change the default value to n if you like



-- 
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


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   but CONFIG_ARCH_PERF_EVENTS=n, arch_timer.c will provide implementation of up_perf.



-- 
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


[GitHub] [nuttx] raiden00pl commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   I think we still need an additional flag indicating that we have to include `up_perf` support. With https://github.com/apache/nuttx/pull/10828 we can select if we want arch specific `up_perf` with `CONFIG_ARCH_PERF_EVENTS=y` or `drivers/timers/arch_timer.c` implementation when `CONFIG_ARCH_PERF_EVENTS=n`.
   If we set `CONFIG_ARCH_PERF_EVENTS` default to n and we make including the code dependent on it, then we lose the ability to choose the  `drivers/timers/arch_timer.c` implementation.



-- 
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


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   Sure.



-- 
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


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   why not check CONFIG_ARCH_PERF_EVENTS



-- 
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


[GitHub] [nuttx] raiden00pl commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   Can we merge it as it is now ? This logic is also present in stm32, so it'll be better to change everything at once. I prefer to solve this in a separate PR after https://github.com/apache/nuttx/pull/10834/ merged



-- 
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


[GitHub] [nuttx] xiaoxiang781216 merged pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


-- 
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


[GitHub] [nuttx] raiden00pl commented on a diff in pull request #10826: arch/nrf{52|53|91}: add support for up_perf

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


##########
arch/arm/src/nrf52/nrf52_start.c:
##########
@@ -203,6 +203,10 @@ void __start(void)
   nrf52_enable_profile(true);
 #endif
 
+#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)

Review Comment:
   CONFIG_ARCH_PERF_EVENTS is default y so this would be always included. This will be fixed in the next step with https://github.com/apache/nuttx/pull/10828



-- 
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