Simon Glass | 3304fa8 | 2022-03-04 08:43:06 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Command-line access to events |
| 4 | * |
| 5 | * Copyright 2021 Google LLC |
| 6 | * Written by Simon Glass <sjg@chromium.org> |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <command.h> |
| 11 | #include <event.h> |
| 12 | |
| 13 | static int do_event_list(struct cmd_tbl *cmdtp, int flag, int argc, |
| 14 | char *const argv[]) |
| 15 | { |
| 16 | event_show_spy_list(); |
| 17 | |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | #ifdef CONFIG_SYS_LONGHELP |
| 22 | static char event_help_text[] = |
Michal Simek | 5c0b032 | 2023-01-17 11:44:45 +0100 | [diff] [blame] | 23 | "list - list event spies"; |
Simon Glass | 3304fa8 | 2022-03-04 08:43:06 -0700 | [diff] [blame] | 24 | #endif |
| 25 | |
| 26 | U_BOOT_CMD_WITH_SUBCMDS(event, "Events", event_help_text, |
| 27 | U_BOOT_SUBCMD_MKENT(list, 1, 1, do_event_list)); |