blob: 00c828757ca923ac7fa0c6957bed824be0832ba5 [file] [log] [blame]
Simon Glassc81b4602022-03-04 08:43:06 -07001// 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
Simon Glassc81b4602022-03-04 08:43:06 -07009#include <command.h>
10#include <event.h>
11
12static int do_event_list(struct cmd_tbl *cmdtp, int flag, int argc,
13 char *const argv[])
14{
15 event_show_spy_list();
16
17 return 0;
18}
19
Tom Rini36162182023-10-07 15:13:08 -040020U_BOOT_LONGHELP(event,
21 "list - list event spies");
Simon Glassc81b4602022-03-04 08:43:06 -070022
23U_BOOT_CMD_WITH_SUBCMDS(event, "Events", event_help_text,
24 U_BOOT_SUBCMD_MKENT(list, 1, 1, do_event_list));