PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_os_mips64.h
Go to the documentation of this file.
1/*
2 * Contributed by Philip Mucci <mucci@cs.utk.edu> based on code from
3 * Copyright (c) 2004-2006 Hewlett-Packard Development Company, L.P.
4 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is furnished to do so,
11 * subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#ifndef __PFMLIB_OS_MIPS64_H__
24#define __PFMLIB_OS_MIPS64_H__
25
26#ifndef __PFMLIB_OS_H__
27#error "you should never include this file directly, use pfmlib_os.h"
28#endif
29
30#include <perfmon/pfmlib_comp.h>
31
32#if !defined(__mips__)
33#error "you should not be including this file"
34#endif
35
36#ifndef __PFMLIB_OS_COMPILE
37#include <perfmon/perfmon.h>
38/*
39 * macros version of pfm_self_start/pfm_self_stop to be used in per-process self-monitoring sessions.
40 * they are also defined as real functions.
41 *
42 * DO NOT USE on system-wide sessions.
43 */
44static inline int
46{
47 return pfm_start(fd, NULL);
48}
49
50static inline int
52{
53 return pfm_stop(fd);
54}
55#endif /* __PFMLIB_OS_COMPILE */
56
57#endif /* __PFMLIB_OS_MIPS64_H__ */
os_err_t pfm_stop(int fd)
os_err_t pfm_start(int fd, pfarg_start_t *start)
static int pfm_self_stop(int fd)
static int pfm_self_start(int fd)