Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
eba3d116
Commit
eba3d116
authored
Nov 30, 2017
by
Adam Wujek
💬
Committed by
Grzegorz Daniluk
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kconfig: add DEFAULT_PRINT_TASK_TIME_THRESHOLD
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
55e1779e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
2 deletions
+21
-2
Kconfig
Kconfig
+12
-0
devel_build_test_defconfig
configs/devel_build_test_defconfig
+1
-0
gsi_defconfig
configs/gsi_defconfig
+1
-0
gsi_pdelay_defconfig
configs/gsi_pdelay_defconfig
+1
-0
wrpc_sim_defconfig
configs/wrpc_sim_defconfig
+1
-0
wrc_main.c
wrc_main.c
+5
-2
No files found.
Kconfig
View file @
eba3d116
...
...
@@ -531,6 +531,18 @@ config LATENCY_SYSLOG
bool "Report latency problems to syslog"
default y
config DEFAULT_PRINT_TASK_TIME_THRESHOLD
depends on DEVELOPER
default 0
int "Default threshold of printing task execution time"
help
If a task executes longer than a given number, its name and
an execution time will be printed to the console. Additionally,
setting this value triggers printing messages if particular task
runs longer than ever before. Setting to 0 disabled this
functionality. This value can be changed in run-time by the command
"ps max <msecs>".
# This is needed to size the pp_instance data strucuture. Instead of
# including the ppsi autoconf.h, with duplicate definitions, define it
...
...
configs/devel_build_test_defconfig
View file @
eba3d116
...
...
@@ -65,6 +65,7 @@ CONFIG_NET_VERBOSE=y
# CONFIG_SNMP_VERBOSE is not set
CONFIG_FAKE_TEMPERATURES=y
CONFIG_LATENCY_PROBE=y
CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD=0
CONFIG_VLAN_ARRAY_SIZE=1
CONFIG_PRINTF_XINT=y
# CONFIG_PRINTF_FULL is not set
...
...
configs/gsi_defconfig
View file @
eba3d116
...
...
@@ -63,6 +63,7 @@ CONFIG_PRINTF_IS_XINT=y
# CONFIG_NET_VERBOSE is not set
# CONFIG_FAKE_TEMPERATURES is not set
CONFIG_LATENCY_PROBE=y
CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD=0
CONFIG_VLAN_ARRAY_SIZE=1
CONFIG_PRINTF_XINT=y
# CONFIG_PRINTF_FULL is not set
...
...
configs/gsi_pdelay_defconfig
View file @
eba3d116
...
...
@@ -63,6 +63,7 @@ CONFIG_PRINTF_IS_XINT=y
# CONFIG_NET_VERBOSE is not set
# CONFIG_FAKE_TEMPERATURES is not set
CONFIG_LATENCY_PROBE=y
CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD=0
CONFIG_VLAN_ARRAY_SIZE=1
CONFIG_PRINTF_XINT=y
# CONFIG_PRINTF_FULL is not set
...
...
configs/wrpc_sim_defconfig
View file @
eba3d116
...
...
@@ -59,6 +59,7 @@ CONFIG_PRINTF_IS_XINT=y
# CONFIG_NET_VERBOSE is not set
# CONFIG_FAKE_TEMPERATURES is not set
# CONFIG_LATENCY_PROBE is not set
CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD=0
CONFIG_VLAN_ARRAY_SIZE=1
CONFIG_PRINTF_XINT=y
# CONFIG_PRINTF_FULL is not set
...
...
wrc_main.c
View file @
eba3d116
...
...
@@ -34,6 +34,10 @@
#include "wrc_ptp.h"
#include "system_checks.h"
#ifndef CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD
#define CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD 0
#endif
int
wrc_ui_mode
=
UI_SHELL_MODE
;
int
wrc_ui_refperiod
=
TICS_PER_SECOND
;
/* 1 sec */
int
wrc_phase_tracking
=
1
;
...
...
@@ -45,8 +49,7 @@ int wrc_vlan_number = CONFIG_VLAN_NR;
static
uint32_t
prev_nanos_for_profile
;
static
uint32_t
prev_ticks_for_profile
;
#define DEFAULT_PRINT_TASK_TIME_THRESHOLD 0
uint32_t
print_task_time_threshold
=
DEFAULT_PRINT_TASK_TIME_THRESHOLD
;
uint32_t
print_task_time_threshold
=
CONFIG_DEFAULT_PRINT_TASK_TIME_THRESHOLD
;
static
void
wrc_initialize
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment