1/** 2 * \file 3 * \brief AMD performance monitoring infrastructure. 4 */ 5 6/* 7 * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#ifndef PERFMON_AMD_H 16#define PERFMON_AMD_H 17 18void perfmon_amd_init(void); 19bool perfmon_amd_supported(void); 20 21void perfmon_amd_measure_stop(uint8_t idx); 22void perfmon_amd_measure_start(uint16_t event, uint8_t umask, bool os, 23 uint8_t idx, bool intr); 24uint64_t perfmon_amd_measure_read(uint8_t idx); 25void perfmon_amd_measure_write(uint64_t val, uint8_t idx); 26 27 28#endif 29