1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _PERF_TARGET_H 20 #define _PERF_TARGET_H 21 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 22 struct perf_target { 23 const char * pid; 24 const char * tid; 25 const char * cpu_list; 26 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 27 const char * uid_str; 28 uid_t uid; 29 bool system_wide; 30 bool uses_mmap; 31 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 32 }; 33 enum perf_target_errno { 34 PERF_ERRNO_TARGET__SUCCESS = 0, 35 __PERF_ERRNO_TARGET__START = - 10000, 36 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 37 PERF_ERRNO_TARGET__PID_OVERRIDE_CPU = __PERF_ERRNO_TARGET__START, 38 PERF_ERRNO_TARGET__PID_OVERRIDE_UID, 39 PERF_ERRNO_TARGET__UID_OVERRIDE_CPU, 40 PERF_ERRNO_TARGET__PID_OVERRIDE_SYSTEM, 41 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 42 PERF_ERRNO_TARGET__UID_OVERRIDE_SYSTEM, 43 PERF_ERRNO_TARGET__INVALID_UID, 44 PERF_ERRNO_TARGET__USER_NOT_FOUND, 45 __PERF_ERRNO_TARGET__END, 46 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 47 }; 48 enum perf_target_errno perf_target__validate(struct perf_target * target); 49 enum perf_target_errno perf_target__parse_uid(struct perf_target * target); 50 #endif 51 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 52 53