parse_event_tests.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "op_parse_event.h"
Include dependency graph for parse_event_tests.c:

Go to the source code of this file.

Data Structures

struct  events_test

Functions

static void do_test (struct events_test const *ev)
int main (void)

Variables

static struct events_test const events []

Detailed Description

Remarks:
Copyright 2003 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file parse_event_tests.c.


Function Documentation

static void do_test ( struct events_test const *  ev  )  [static]

Definition at line 31 of file parse_event_tests.c.

References parsed_event::count, events_test::expected, parsed_event::kernel, parsed_event::name, parse_events(), events_test::tests, parsed_event::unit_mask, and parsed_event::user.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( void   ) 

Definition at line 52 of file parse_event_tests.c.

References do_test(), and events_test::tests.

Here is the call graph for this function:


Variable Documentation

struct events_test const events[] [static]
Initial value:
 
{
    { { "FOO:3000:0:0:0", 0 },    { "FOO", 3000, 0, NULL, 0, 0, 0 } },
    { { "BAR:3000", 0 },          { "BAR", 3000, 0, NULL, 1, 1, 0 } },
    { { "FOOBAR:3000:1:1:1", 0 }, { "FOOBAR", 3000, 1, NULL, 1, 1, 0 } },
    { { NULL, NULL },             { 0, 0, 0, NULL, 0, 0, 0 } }
}

Definition at line 23 of file parse_event_tests.c.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1