perfevent.cc (11793:ef606668d247) perfevent.cc (12334:e0ab29a34764)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 36 unchanged lines hidden (view full) ---

45#include <syscall.h>
46#include <unistd.h>
47
48#include <cassert>
49#include <cerrno>
50#include <csignal>
51#include <cstring>
52
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 36 unchanged lines hidden (view full) ---

45#include <syscall.h>
46#include <unistd.h>
47
48#include <cassert>
49#include <cerrno>
50#include <csignal>
51#include <cstring>
52
53#include "base/misc.hh"
53#include "base/logging.hh"
54#include "perfevent.hh"
55
56PerfKvmCounterConfig::PerfKvmCounterConfig(uint32_t type, uint64_t config)
57{
58 memset(&attr, 0, sizeof(attr));
59
60 attr.size = PERF_ATTR_SIZE_VER0;
61 attr.type = type;

--- 185 unchanged lines hidden ---
54#include "perfevent.hh"
55
56PerfKvmCounterConfig::PerfKvmCounterConfig(uint32_t type, uint64_t config)
57{
58 memset(&attr, 0, sizeof(attr));
59
60 attr.size = PERF_ATTR_SIZE_VER0;
61 attr.type = type;

--- 185 unchanged lines hidden ---