OpenBIC
OpenSource Bridge-IC
log_shell.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef LOG_SHELL_H
18#define LOG_SHELL_H
19
20#include <shell/shell.h>
21
22void cmd_set_event(const struct shell *shell, size_t argc, char **argv);
23void cmd_log_dump(const struct shell *shell, size_t argc, char **argv);
24void cmd_test_read(const struct shell *shell, size_t argc, char **argv);
25void cmd_log_clear(const struct shell *shell, size_t argc, char **argv);
26
28 SHELL_CMD(set_event, NULL, "set_event", cmd_set_event),
29 SHELL_CMD(dump, NULL, "log_dump", cmd_log_dump),
30 SHELL_CMD(clear, NULL, "log_clear", cmd_log_clear),
31 SHELL_CMD(test_read, NULL, "test_read", cmd_test_read),
32 SHELL_SUBCMD_SET_END);
33
34#endif
void cmd_test_read(const struct shell *shell, size_t argc, char **argv)
Definition: log_shell.c:74
void cmd_log_clear(const struct shell *shell, size_t argc, char **argv)
Definition: log_shell.c:95
SHELL_STATIC_SUBCMD_SET_CREATE(sub_plat_log_cmd, SHELL_CMD(set_event, NULL, "set_event", cmd_set_event), SHELL_CMD(dump, NULL, "log_dump", cmd_log_dump), SHELL_CMD(clear, NULL, "log_clear", cmd_log_clear), SHELL_CMD(test_read, NULL, "test_read", cmd_test_read), SHELL_SUBCMD_SET_END)
void cmd_log_dump(const struct shell *shell, size_t argc, char **argv)
Definition: log_shell.c:39
void cmd_set_event(const struct shell *shell, size_t argc, char **argv)
Definition: log_shell.c:23