iPXE
Data Structures | Functions | Variables
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)
static int profstat_exec (int argc, char **argv)
 The "profstat" command.

Variables

static struct option_descriptor profstat_opts [] = {}
 "profstat" option list
static struct command_descriptor profstat_cmd
 "profstat" command descriptor
struct command profstat_commands[] __command
 Profiling commands.

Detailed Description

Profiling commands.

Definition in file profstat_cmd.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static int profstat_exec ( int  argc,
char **  argv 
) [static]

The "profstat" command.

Parameters:
argcArgument count
argvArgument list
Return values:
rcReturn status code

Definition at line 55 of file profstat_cmd.c.

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

                                                   {
        struct profstat_options opts;
        int rc;

        /* Parse options */
        if ( ( rc = parse_options ( argc, argv, &profstat_cmd, &opts ) ) != 0 )
                return rc;

        profstat();

        return 0;
}

Variable Documentation

struct option_descriptor profstat_opts[] = {} [static]

"profstat" option list

Definition at line 42 of file profstat_cmd.c.

Initial value:

"profstat" command descriptor

Definition at line 45 of file profstat_cmd.c.

struct command profstat_commands [] __command
Initial value:
 {
        {
                .name = "profstat",
                .exec = profstat_exec,
        },
}

Profiling commands.

Definition at line 69 of file profstat_cmd.c.