OpenCores
URL https://opencores.org/ocsvn/sudoku/sudoku/trunk

Subversion Repositories sudoku

[/] [sudoku/] [branches/] [zynq/] [sw/] [counters.h] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 dsheffie
#ifndef __COUNTERS_H__
2
#define __COUNTERS_H__
3
 
4
#include <cstdlib>
5
#include <cstring>
6
#include <cstdio>
7
#include <errno.h>
8
#include <unistd.h>
9
#include <cassert>
10
#include <sys/syscall.h>
11
#include <linux/perf_event.h>
12
#include <stdint.h>
13
 
14
typedef struct
15
{
16
  bool init;
17
  int fd;
18
  struct perf_event_attr attr;
19
  uint64_t buffer;
20
} hwCounter_t;
21
 
22
void initTicks(hwCounter_t &x);
23
void initInsns(hwCounter_t &x);
24
 
25
uint64_t getTicks(hwCounter_t &x);
26
uint64_t getInsns(hwCounter_t &x);
27
 
28
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.