Blame src/perfctr-2.6.x/examples/perfex/arch.h
|
Packit |
577717 |
/* $Id: arch.h,v 1.2.2.3 2010/06/08 20:48:55 mikpe Exp $
|
|
Packit |
577717 |
* Architecture-specific support code.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Copyright (C) 2004-2010 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_info *info,
|
|
Packit |
577717 |
const struct perfctr_cpu_control *cpu_control,
|
|
Packit |
577717 |
const struct perfctr_sum_ctrs *sum);
|
|
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(__powerpc__)
|
|
Packit |
577717 |
#include "ppc.h"
|
|
Packit |
577717 |
#elif defined(__arm__)
|
|
Packit |
577717 |
#include "arm.h"
|
|
Packit |
577717 |
#endif
|