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