| Chris Metcalf | 867e359 | 2010-05-28 23:09:12 -0400 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright 2010 Tilera Corporation. All Rights Reserved. | 
|  | 3 | * | 
|  | 4 | *   This program is free software; you can redistribute it and/or | 
|  | 5 | *   modify it under the terms of the GNU General Public License | 
|  | 6 | *   as published by the Free Software Foundation, version 2. | 
|  | 7 | * | 
|  | 8 | *   This program is distributed in the hope that it will be useful, but | 
|  | 9 | *   WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 10 | *   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | 
|  | 11 | *   NON INFRINGEMENT.  See the GNU General Public License for | 
|  | 12 | *   more details. | 
|  | 13 | * | 
|  | 14 | * The hypervisor's memory controller profiling infrastructure allows | 
|  | 15 | * the programmer to find out what fraction of the available memory | 
|  | 16 | * bandwidth is being consumed at each memory controller.  The | 
|  | 17 | * profiler provides start, stop, and clear operations to allows | 
|  | 18 | * profiling over a specific time window, as well as an interface for | 
|  | 19 | * reading the most recent profile values. | 
|  | 20 | * | 
|  | 21 | * This header declares IOCTL codes necessary to control memprof. | 
|  | 22 | */ | 
|  | 23 | #ifndef _ASM_TILE_MEMPROF_H | 
|  | 24 | #define _ASM_TILE_MEMPROF_H | 
|  | 25 |  | 
|  | 26 | #include <linux/ioctl.h> | 
|  | 27 |  | 
|  | 28 | #define MEMPROF_IOCTL_TYPE 0xB4 | 
|  | 29 | #define MEMPROF_IOCTL_START _IO(MEMPROF_IOCTL_TYPE, 0) | 
|  | 30 | #define MEMPROF_IOCTL_STOP _IO(MEMPROF_IOCTL_TYPE, 1) | 
|  | 31 | #define MEMPROF_IOCTL_CLEAR _IO(MEMPROF_IOCTL_TYPE, 2) | 
|  | 32 |  | 
|  | 33 | #endif /* _ASM_TILE_MEMPROF_H */ |