mangle_tests.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "op_libiberty.h"
#include "op_mangle.h"
#include "op_config.h"
Include dependency graph for mangle_tests.c:

Go to the source code of this file.

Data Structures

struct  test_input

Functions

int main (void)

Variables

static struct test_input const tests []

Detailed Description

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

Definition in file mangle_tests.c.


Function Documentation

int main ( void   ) 

Definition at line 48 of file mangle_tests.c.

References op_mangle_filename(), op_samples_current_dir, test_input::result, test(), and test_input::values.

Here is the call graph for this function:


Variable Documentation

struct test_input const tests[] [static]
Initial value:
 {
    { { MANGLE_NONE, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 0 },
      "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.all.all" },
    { { MANGLE_CPU, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 2 },
      "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.all.2" },
    { { MANGLE_TID, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 33, 0 },
      "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.33.all" },
    { { MANGLE_TGID, "foo", "", "bar", NULL, "EVENT", 0, 0, 34, 0, 0 },
      "{root}/bar/{dep}/{root}/foo/EVENT.0.0.34.all.all" },
    { { MANGLE_KERNEL, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 0 },
      "{kern}/bar/{dep}/{kern}/foo/EVENT.0.0.all.all.all" },
    { { MANGLE_CALLGRAPH, "foo-from", "", "bar-from", "foo-to", "EVENT", 0, 0, 0, 0, 0 },
      "{root}/bar-from/{dep}/{root}/foo-from/{cg}/{root}/foo-to/EVENT.0.0.all.all.all" },
    { { MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "foo", "", "bar", NULL, "EVENT", 1234, 8192, 34, 35, 2 },
      "{kern}/bar/{dep}/{kern}/foo/EVENT.1234.8192.34.35.2" },
    { { MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "foo1/foo2", "", "bar1/bar2", NULL, "EVENT", 1234, 8192, 34, 35, 2 },
      "{root}/bar1/bar2/{dep}/{root}/foo1/foo2/EVENT.1234.8192.34.35.2" },
    { { MANGLE_CALLGRAPH|MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "bar1/bar2", "", "bar1/bar2", "bar1/bar2-to", "EVENT", 1234, 8192, 34, 35, 2 },
      "{root}/bar1/bar2/{dep}/{root}/bar1/bar2/{cg}/{root}/bar1/bar2-to/EVENT.1234.8192.34.35.2" },

    { { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0 }, NULL }
}

Definition at line 24 of file mangle_tests.c.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1