OpenBIC
OpenSource Bridge-IC
log_shell.c File Reference
#include <shell/shell.h>
#include <stdlib.h>
#include <stdio.h>
#include "plat_log.h"
#include "plat_fru.h"
Include dependency graph for log_shell.c:

Functions

void cmd_set_event (const struct shell *shell, size_t argc, char **argv)
 
void cmd_log_dump (const struct shell *shell, size_t argc, char **argv)
 
void cmd_test_read (const struct shell *shell, size_t argc, char **argv)
 
void cmd_log_clear (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_blackbox_cmd, SHELL_CMD(get, NULL, "log_dump", cmd_log_dump), SHELL_CMD(clear, NULL, "log_clear", cmd_log_clear), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (blackbox, &sub_blackbox_cmd, "blackbox get/clear commands", NULL)
 

Function Documentation

◆ cmd_log_clear()

void cmd_log_clear ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ cmd_log_dump()

void cmd_log_dump ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ cmd_set_event()

void cmd_set_event ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ cmd_test_read()

void cmd_test_read ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( blackbox  ,
sub_blackbox_cmd,
"blackbox get/clear commands"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_blackbox_cmd  ,
SHELL_CMD(get, NULL, "log_dump", cmd_log_dump)  ,
SHELL_CMD(clear, NULL, "log_clear", cmd_log_clear)  ,
SHELL_SUBCMD_SET_END   
)