Marian Buschsieweke
4c3e92f183
core: Made thread state an enum
...
- Introduced enum type `thread_state_t` to replace preprocessor macros
- Moved thread states to `sched.h` for two reasons:
a) Because of the interdependencies of `sched.h` and `thread.h` keeping it in
`thread.h` would result in ugly code.
b) Theses thread states are defined from the schedulers point of view, so it
actually makes senses to have it defined there
2019-02-13 13:31:52 +01:00
Marian Buschsieweke
c700d0439e
sys/ps: Fixed stringification
...
Added missing string for STATUS_COND_BLOCKED, so that the shell command "ps"
no longer crashes when a thread has this state.
2019-02-07 21:35:48 +01:00
Joakim Nohlgård
1f58c63ea4
sys/ps: Remove unused include xtimer.h
2018-10-26 09:03:46 +02:00
Martine Lenders
91c65e40f8
Merge pull request #9327 from cgundogan/pr/tlsf_total_sizes
...
tlsf: add custom walker to get total free / used sizes
2018-06-12 10:07:07 +02:00
Cenk Gündoğan
0009213072
tlsf: add custom walker to get total free / used sizes
2018-06-12 09:43:48 +02:00
7d013eb2b6
sys: fix doxygen grouping
2018-06-11 19:12:02 +02:00
Juan Carrano
841c7195ba
sys/ps: Use correct define for TLSF information.
...
The macro MODULE_TLSF_MALLOC indicates if tlsf is being used as the system-wide
allocator. MODULE_TLSF only incates if TLSF is present.
PS should check for MODULE_TLSF_MALLOC to decide if heap information should be
displayed.
2018-05-30 14:13:25 +02:00
Juan Carrano
cf686bde2d
pkg/tlsf: Refactor the TLSF package and bring back original TLSF api.
...
- Cleanup package makefile.
- Download directly from git.
- Remove giant patch.
- Implement malloc function as a contrib package.
- Update ccn example.
- Update ps command.
2018-05-18 15:41:07 +02:00
2a177ea6c8
sys/ps: adapt to COREIF_NG removal
2017-11-16 14:40:16 +01:00
smlng
3ac6d6c80d
schedstats: refine ps output
...
- use unsigned int instead of double
2017-06-09 10:50:07 +02:00
Sebastian Meiling
dd4f8f7704
Merge pull request #6975 from OTAkeys/pr/ps_schedstatistics_fix
...
ps: fix schedstatistics
2017-05-17 13:50:42 +02:00
Vincent Dupont
6d5b95517d
ps: fix schedstatistics
...
Fix xtimer_now() usage and fix columns alignment in ps command when
module schedstatistics is used.
2017-05-16 10:33:42 +02:00
Hauke Petersen
383d49412e
sys/ps: only show isr stack stats if applicable
2017-05-12 18:07:07 +02:00
Martine Lenders
04823b9192
ps: add state name for STATUS_MBOX_BLOCKED
2017-02-14 16:02:27 +01:00
Joakim Nohlgård
b02e0eca47
ps: Add current stack pointer and start of stack to isr_stack ps output (DEVELHELP)
2016-07-12 10:17:49 +02:00
Joakim Nohlgård
44d130f535
sys/ps: Add current stack pointer to ps output (DEVELHELP)
2016-07-12 10:17:48 +02:00
MohmadAyman
8da1eb9f7a
ps: provide ISR stackusage information
2016-06-02 09:48:37 +02:00
chrysn
e348a8df80
PS: Display waiting for flags
...
This adds support for the recently introduced thread flags mechanism to
the `ps` module; while previously it would show a thread in state
"(null)" when it is blocked on thread_flags_wait_any or
thread_flags_wait_all, it now shoes the state "bl anyfl" or "bl allfl",
respectively. The labels are kept that short to not mess with the
fixed-width layout.
2016-05-31 18:27:14 +02:00
Oleg Hahm
1777409472
ps: add heap statistics for TLSF (if enabled)
2016-05-27 13:48:06 +02:00
Yonezawa-T2
60c1322505
ps: fix compile error on clang 7.3.0
2016-03-23 12:25:14 +09:00
2b010b5337
core: rename tcb_t -> thread_t, move into thread.h
2016-03-05 18:20:17 +01:00
844f8a491c
sys: ps: adapt to xtimer
2015-09-16 10:58:51 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Oleg Hahm
89b32aefe3
ps: thread_print_all() had the wrong module prefix
2015-04-19 16:36:05 +02:00
Oleg Hahm
7b95b613b2
sys: fix thread_print_all
2014-10-30 20:16:48 +01:00
Oleg Hahm
9a61d8cf1c
core: move optional tcb members to DEVELHELP
2014-10-30 16:37:10 +01:00
René Kijewski
b31e5a8675
core: introduce KERNEL_PID_FIRST and KERNEL_PID_LAST
2014-08-17 19:50:34 +02:00
René Kijewski
9e3830a72b
core: only store the stack size for DEVELHELP
...
`tcp_t::stack_size` is only examined by the shell command `ps` and
`DEBUG_PRINT`. For the latter one only if `DEVELHELP` was enabled.
This PR guards the member `tcp_t::stack_size` in `#ifdef DEVELHELP`.
Only if DEVELHELP was activated its value get printed by `ps`.
Closes #1287 .
2014-08-02 00:35:41 +02:00
Oleg Hahm
983d056c75
core: harmonizes the data type for the process ID
...
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
295f32ac1b
sys/ps: fix comment style, superfluous declaration
2014-07-04 16:38:22 +02:00
Ludwig Ortmann
70dae32a3f
sys/ps: s/float/int for runtime
...
The high precision isn't needed, use per mille instead.
Circumvents printf problems on some platforms.
Also: prevent division by zero.
2014-07-04 16:38:22 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Jan S
ba907471f3
fixed printf specifiers
2014-05-15 17:42:57 +02:00
René Kijewski
6a0053fbc8
shell:ps: SCHEDSTATISTICS cols only if needed
2014-05-08 10:27:33 +02:00
53347540d1
sys: update ps to reflect thread status variable changes
2014-02-17 12:57:27 +01:00
Ludwig Ortmann
9cd5b4f30d
fix stack_size comment in ps.c
2014-01-20 10:54:14 +01:00
Ludwig Ortmann
bcbe6bf5c8
thread_measure_stack_ usage -> free
...
Rename the function as its name suggests the opposite of what it does.
2014-01-20 10:46:20 +01:00
Ludwig Ortmann
d6c213fb47
fix grammar in license header
2013-11-23 13:11:56 +01:00
Ludwig Ortmann
2c52c0a79d
fix table header indentation
2013-11-21 22:09:42 +01:00
Oleg Hahm
5c039eb4b6
Merge pull request #340 from LudwigOrtmann/ps_includes
...
make ps includes adhere to coding convetions
2013-11-19 08:48:49 -08:00
Ludwig Ortmann
96fe3a16ee
make ps includes adhere to coding convetions
2013-11-18 18:00:35 +01:00
Ludwig Ortmann
d06e0d8717
rename runtime to reflect the unit of measurement
2013-11-18 12:14:43 +01:00
Oleg Hahm
2f14997124
fixed debug output for ps and vtimer
2013-11-03 07:30:41 -08:00
Oliver Hahm
c8bee9e554
fixed coding style (space after most keywords)
2013-06-24 22:37:35 +02:00
Oliver Hahm
5c52e1ce2e
coding conventions for most of system libraries
2013-06-22 05:11:53 +02:00
Oliver Hahm
0d6d8390c0
* updated copyright and license headers in various files
2013-06-18 17:21:38 +02:00
Oleg Hahm
5df0bd0cc4
* updated and integrated makefiles
...
* added some auto dependencies
2013-02-08 17:37:02 +01:00