/usr/include/libsysactivity/libsysactivity.h is in libsysactivity-dev 0.6.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | /*
* libsysactivity
* http://sourceforge.net/projects/libsysactivity/
* Copyright (c) 2009, 2010 Carlos Olmedo Escobar <carlos.olmedo.e@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LIBSYSACTIVITY_H_
#define LIBSYSACTIVITY_H_
#include <stdint.h>
#include <unistd.h>
#include <linux/dm-ioctl.h>
#ifdef __cplusplus
extern "C" {
#endif
#define SA_OPEN_CPU
#define SA_CLOSE_CPU
#define SA_SMP_CAPABLE
#define SA_CPU_ID
#define SA_CPU_USER
#define SA_CPU_NICE
#define SA_CPU_SYSTEM
#define SA_CPU_IDLE
#define SA_CPU_WAITING_FOR_IO
#define SA_CPU_HARDWARE_IRQ
#define SA_CPU_SOFTWARE_IRQ
#define SA_CPU_STOLEN
#undef SA_CPU_INTR
#define SA_OPEN_DISK
#define SA_CLOSE_DISK
#define SA_DISK_NAME DM_NAME_LEN
#define SA_DISK_READS
#define SA_DISK_READS_MERGED
#define SA_DISK_SECTORS_READ
#define SA_DISK_TIME_SPENT_READING
#define SA_DISK_WRITES
#define SA_DISK_SECTORS_WRITTEN
#define SA_DISK_TIME_SPENT_WRITING
#undef SA_DISK_BYTES_READ
#undef SA_DISK_BYTES_WRITTEN
#define SA_OPEN_MEMORY
#define SA_CLOSE_MEMORY
#define SA_MEMORY_TOTAL
#define SA_MEMORY_FREE
#define SA_MEMORY_ACTIVE
#define SA_MEMORY_INACTIVE
#define SA_MEMORY_BUFFERS
#define SA_MEMORY_SWAP_TOTAL
#define SA_MEMORY_SWAP_FREE
#define SA_MEMORY_SWAP_CACHED
#undef SA_MEMORY_WIRED
#define SA_MEMORY_CACHED
#define SA_MEMORY_DIRTY
#undef SA_MEMORY_EXECUTABLE
#undef SA_MEMORY_FILES
#undef SA_MEMORY_LOCKED
#define SA_OPEN_NET
#define SA_CLOSE_NET
#define SA_NET_INTERFACE_NAME 64
#define SA_NET_INTERFACE_RECEIVED_BYTES
#define SA_NET_INTERFACE_RECEIVED_PACKETS
#define SA_NET_INTERFACE_RECEIVED_ERRORS
#define SA_NET_INTERFACE_RECEIVED_DROP
#define SA_NET_INTERFACE_RECEIVED_FIFO
#define SA_NET_INTERFACE_RECEIVED_COMPRESSED
#undef SA_NET_INTERFACE_RECEIVED_MULTICAST
#define SA_NET_INTERFACE_SENT_BYTES
#define SA_NET_INTERFACE_SENT_PACKETS
#define SA_NET_INTERFACE_SENT_ERRORS
#define SA_NET_INTERFACE_SENT_DROP
#define SA_NET_INTERFACE_SENT_FIFO
#define SA_NET_INTERFACE_SENT_COMPRESSED
#undef SA_NET_INTERFACE_SENT_MULTICAST
#define SA_OPEN_PROCESS
#define SA_CLOSE_PROCESS
#define SA_PROCESS_PID
#define SA_PROCESS_UID
#define SA_PROCESS_GID
#define SA_PROCESS_FILENAME 1024 // Don't use FILENAME_MAX as the size of an array in which to store a file name! You can't possibly make an array that big!
#define SA_PROCESS_CMDLINE 384
#define SA_PROCESS_PARENT_PID
#define SA_PROCESS_PGRP
#define SA_PROCESS_SID
#define SA_PROCESS_TTY
#define SA_PROCESS_NICE
#define SA_PROCESS_START_TIME
#define SA_PROCESS_STATE
#define SA_PROCESS_USER_TIME
#define SA_PROCESS_SYS_TIME
#define SA_PROCESS_THREADS
#define SA_PROCESS_VM_SIZE
#define SA_PROCESS_RSS
#define SA_OPEN_SWAP
#define SA_CLOSE_SWAP
#define SA_SWAP_NAME 1024
#define SA_SWAP_TOTAL
#define SA_SWAP_FREE
#define SA_SWAP_TYPE
#include "global.h"
#ifdef __cplusplus
}
#endif
#endif /* LIBSYSACTIVITY_H_ */
|