[riot-commits] [RIOT-OS/RIOT] 04630d: sys/shell: Add optional hooks for shell commands

Martine Lenders noreply at github.com
Tue Jul 7 18:44:07 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 04630d20bae4c2a64b01069343431d092c705d8c
      https://github.com/RIOT-OS/RIOT/commit/04630d20bae4c2a64b01069343431d092c705d8c
  Author: MrKevinWeiss <weiss.kevin604 at gmail.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M makefiles/pseudomodules.inc.mk
    M sys/include/shell.h
    M sys/shell/shell.c
    M tests/shell/main.c

  Log Message:
  -----------
  sys/shell: Add optional hooks for shell commands

Introduce optional user shell_post_readline_hook, shell_pre_command_hook, shell_post_command_hook.
Enable with USEMODULE=shell_hooks.
Calls user implemented *_hook functions if defined.
If implementation does not exist, nothing happens.

The intent is to make profiling of the shell command timings easier.

Test provided in tests/shell with USEMODULE=shell_hooks.


  Commit: 6fc72be7234bf9378d10db750b569af6a57b7431
      https://github.com/RIOT-OS/RIOT/commit/6fc72be7234bf9378d10db750b569af6a57b7431
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M makefiles/pseudomodules.inc.mk
    M sys/include/shell.h
    M sys/shell/shell.c
    M tests/shell/main.c

  Log Message:
  -----------
  Merge pull request #14450 from MrKevinWeiss/pr/shellhooks

sys/shell: Add optional hooks for shell commands


Compare: https://github.com/RIOT-OS/RIOT/compare/f32063883e8e...6fc72be7234b


More information about the commits mailing list