Blame src/perfctr-2.7.x/examples/perfex/arch.h
|
Packit |
577717 |
/* $Id: arch.h,v 1.5 2005/03/23 02:02:54 mikpe Exp $
|
|
Packit |
577717 |
* Architecture-specific support code.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Copyright (C) 2004 Mikael Pettersson
|
|
Packit |
577717 |
*/
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
|
Packit |
577717 |
|
|
Packit |
577717 |
extern void do_print(FILE *resfile,
|
|
Packit |
577717 |
const struct perfctr_cpu_control *cpu_control,
|
|
Packit |
577717 |
const struct perfctr_sum_ctrs *sum,
|
|
Packit |
577717 |
const struct perfctr_sum_ctrs *children);
|
|
Packit |
577717 |
|
|
Packit |
577717 |
extern void do_arch_usage(void);
|
|
Packit |
577717 |
|
|
Packit |
577717 |
/* Hack while phasing out an old number parsing bug. */
|
|
Packit |
577717 |
extern unsigned long my_strtoul(const char *nptr, char **endptr);
|
|
Packit |
577717 |
|
|
Packit |
577717 |
extern unsigned int do_event_spec(unsigned int n,
|
|
Packit |
577717 |
const char *arg,
|
|
Packit |
577717 |
struct perfctr_cpu_control *cpu_control);
|
|
Packit |
577717 |
|
|
Packit |
577717 |
extern int do_arch_option(int ch,
|
|
Packit |
577717 |
const char *arg,
|
|
Packit |
577717 |
struct perfctr_cpu_control *cpu_control);
|
|
Packit |
577717 |
|
|
Packit |
577717 |
#if defined(__i386__) || defined(__x86_64__)
|
|
Packit |
577717 |
#include "x86.h"
|
|
Packit |
577717 |
#elif defined(__powerpc64__) || defined(PPC64)
|
|
Packit |
577717 |
#include "ppc64.h"
|
|
Packit |
577717 |
#elif defined(__powerpc__)
|
|
Packit |
577717 |
#include "ppc.h"
|
|
Packit |
577717 |
#endif
|