iPXE
profstat_cmd.c File Reference

Profiling commands. More...

#include <stdio.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <usr/profstat.h>

Go to the source code of this file.

Data Structures

struct  profstat_options
 "profstat" options More...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
static int profstat_exec (int argc, char **argv)
 The "profstat" command.
 COMMAND (profstat, profstat_exec)
 Profiling commands.

Variables

static struct option_descriptor profstat_opts [] = {}
 "profstat" option list
static struct command_descriptor profstat_cmd
 "profstat" command descriptor

Detailed Description

Profiling commands.

Definition in file profstat_cmd.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ profstat_exec()

int profstat_exec ( int argc,
char ** argv )
static

The "profstat" command.

Parameters
argcArgument count
argvArgument list
Return values
rcReturn status code

Definition at line 56 of file profstat_cmd.c.

56 {
58 int rc;
59
60 /* Parse options */
61 if ( ( rc = parse_options ( argc, argv, &profstat_cmd, &opts ) ) != 0 )
62 return rc;
63
64 profstat();
65
66 return 0;
67}
struct arbelprm_rc_send_wqe rc
Definition arbel.h:3
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Definition parseopt.c:485
void profstat(void)
Print profiling statistics.
Definition profstat.c:41
static struct command_descriptor profstat_cmd
"profstat" command descriptor
"profstat" options

References opts, parse_options(), profstat(), profstat_cmd, and rc.

Referenced by COMMAND().

◆ COMMAND()

COMMAND ( profstat ,
profstat_exec  )

Profiling commands.

References profstat(), and profstat_exec().

Variable Documentation

◆ profstat_opts

struct option_descriptor profstat_opts[] = {}
static

"profstat" option list

Definition at line 43 of file profstat_cmd.c.

43{};

◆ profstat_cmd

struct command_descriptor profstat_cmd
static
Initial value:
=
#define NULL
NULL pointer (VOID *)
Definition Base.h:322
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
Definition parseopt.h:109
static struct option_descriptor profstat_opts[]
"profstat" option list

"profstat" command descriptor

Definition at line 46 of file profstat_cmd.c.

Referenced by profstat_exec(), and PROVIDE_REQUIRING_SYMBOL().