Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
8a2e3800
Commit
8a2e3800
authored
6 years ago
by
Christian Rauch
Committed by
David Sidrane
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx
parent
fce35ba9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/modules/load_mon/load_mon.cpp
+4
-0
4 additions, 0 deletions
src/modules/load_mon/load_mon.cpp
src/modules/logger/watchdog.cpp
+4
-0
4 additions, 0 deletions
src/modules/logger/watchdog.cpp
src/modules/systemlib/print_load_nuttx.c
+4
-0
4 additions, 0 deletions
src/modules/systemlib/print_load_nuttx.c
with
12 additions
and
0 deletions
src/modules/load_mon/load_mon.cpp
+
4
−
0
View file @
8a2e3800
...
...
@@ -58,6 +58,10 @@
#include
<uORB/topics/cpuload.h>
#include
<uORB/topics/task_stack_info.h>
#if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_INSTRUMENTATION)
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
#endif
extern
struct
system_load_s
system_load
;
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
...
...
This diff is collapsed.
Click to expand it.
src/modules/logger/watchdog.cpp
+
4
−
0
View file @
8a2e3800
...
...
@@ -35,6 +35,10 @@
#include
<px4_log.h>
#if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_INSTRUMENTATION)
# error watchdog support requires CONFIG_SCHED_INSTRUMENTATION
#endif
using
namespace
time_literals
;
namespace
px4
...
...
This diff is collapsed.
Click to expand it.
src/modules/systemlib/print_load_nuttx.c
+
4
−
0
View file @
8a2e3800
...
...
@@ -46,6 +46,8 @@
#include
<systemlib/printload.h>
#include
<drivers/drv_hrt.h>
#if defined(CONFIG_SCHED_INSTRUMENTATION)
extern
struct
system_load_s
system_load
;
#define CL "\033[K" // clear line
...
...
@@ -380,3 +382,5 @@ void print_load(uint64_t t, int fd, struct print_load_s *print_state)
print_load_buffer
(
t
,
data
.
buffer
,
sizeof
(
data
.
buffer
),
print_load_callback
,
&
data
,
print_state
);
}
#endif // if CONFIG_SCHED_INSTRUMENTATION
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment