1 /* Copyright (C) 2021 Free Software Foundation, Inc.
2    Contributed by Oracle.
3 
4    This file is part of GNU Binutils.
5 
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3, or (at your option)
9    any later version.
10 
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, 51 Franklin Street - Fifth Floor, Boston,
19    MA 02110-1301, USA.  */
20 
21 #ifndef _EMSGNUM_H
22 #define _EMSGNUM_H
23 
24 // Define numerical codes for all messages and warnings
25 
26 #define COL_ERROR_NONE			0	/* OK */
27 #define COL_ERROR_ARGS2BIG		1	/* data descriptor too long */
28 #define COL_ERROR_BADDIR		2	/* experiment directory error */
29 #define COL_ERROR_ARGS			3	/* data descriptor format error */
30 #define COL_ERROR_PROFARGS		4	/* clock profile parameter error */
31 #define COL_ERROR_SYNCARGS		5	/* synctrace parameter error */
32 #define COL_ERROR_HWCARGS		6	/* HWC profile parameter error */
33 #define COL_ERROR_DIRPERM		7	/* experiment directory not writable */
34 #define COL_ERROR_NOMSACCT		8	/* failed to turn on microstate accounting */
35 #define COL_ERROR_PROFINIT		9	/* failed to initialize profiling */
36 #define COL_ERROR_SYNCINIT		10	/* failed to initialize synchronization tracing */
37 #define COL_ERROR_HWCINIT		11	/* failed to initialize HWC profiling */
38 #define COL_ERROR_HWCFAIL		12	/* HWC profiling failed during run */
39 #define COL_ERROR_EXPOPEN		13	/* Experiment initialization failed */
40 #define COL_ERROR_SIZELIM		14	/* Experiment exceeded size limit */
41 #define COL_ERROR_SYSINFO		15	/* uname call failed */
42 #define COL_ERROR_OVWOPEN		16	/* Opening the overview file failed */
43 #define COL_ERROR_OVWWRITE		17	/* Writing the overview file failed */
44 #define COL_ERROR_OVWREAD		18	/* Reading the overview data failed */
45 #define COL_ERROR_NOZMEM		19	/* Unable to open /dev/zero */
46 #define COL_ERROR_NOZMEMMAP		20	/* Unable to map /dev/zero */
47 #define COL_ERROR_NOHNDL		21	/* No more handles available for data */
48 #define COL_ERROR_FILEOPN		22	/* Unable to open file */
49 #define COL_ERROR_FILETRNC		23	/* Unable to truncate file */
50 #define COL_ERROR_FILEMAP		24	/* Unable to mmap file */
51 #define COL_ERROR_HEAPINIT		25	/* Unable to install heap tracing */
52 #define COL_ERROR_DISPINIT              26      /* Failed to install dispatcher */
53 #define COL_ERROR_ITMRINIT              27      /* Failed to install interval timer */
54 #define COL_ERROR_SMPLINIT              28      /* Failed to initialize periodic sampling */
55 #define COL_ERROR_MPIINIT               29      /* Failed to initialize MPI tracing */
56 #define COL_ERROR_JAVAINIT              30      /* Failed to initialize Java profiling */
57 #define COL_ERROR_LINEINIT              31      /* Failed to initialize lineage tracing */
58 #define COL_ERROR_NOSPACE               32      /* Ran out of disk space writing file */
59 #define COL_ERROR_ITMRRST               33      /* Failed to reset interval timer */
60 #define COL_ERROR_MKDIR                 34      /* Failed to create (sub)directory */
61 #define COL_ERROR_JVM2NEW               35      /* JVM is too new for us to cope (JVMTI interface) */
62 #define COL_ERROR_JVMNOTSUPP            36      /* JVM does not support profiling (no JVMTI interface) */
63 #define COL_ERROR_JVMNOJSTACK           37      /* JVM does not support java stack unwind */
64 #define COL_ERROR_DYNOPEN               38      /* Unable to open dyntext file */
65 #define COL_ERROR_DYNWRITE              39      /* Unable to write dyntext file */
66 #define COL_ERROR_MAPOPEN               40      /* Unable to open map file */
67 #define COL_ERROR_MAPREAD               41      /* Unable to read map file */
68 #define COL_ERROR_MAPWRITE              42      /* Unable to write map file */
69 #define COL_ERROR_RESOLVE               43      /* Unable to resolve map file */
70 #define COL_ERROR_OMPINIT               44      /* Failure to initialize OpenMP tracing */
71 #define COL_ERROR_DURATION_INIT         45      /* Failure to initialize -t (duration) processing */
72 #define COL_ERROR_RDTINIT		46	/* Unable to install RDT */
73 #define COL_ERROR_GENERAL		47	/* General error */
74 #define COL_ERROR_EXEC_FAIL		48	/* Can't exec the process */
75 #define COL_ERROR_THR_MAX		49	/* More threads than are supported */
76 #define COL_ERROR_IOINIT		50	/* failed to initialize IO tracing */
77 #define COL_ERROR_NODATA		51	/* No data recorded in experiment */
78 #define COL_ERROR_DTRACE_FATAL 		52	/* Fatal error from er_kernel DTrace code */
79 #define COL_ERROR_MAPSEEK 		53	/* Error on seek of map file */
80 #define COL_ERROR_UNEXP_FOUNDER 	54	/* Unexpected value for SP_COLLECTOR_FOUNDER */
81 #define COL_ERROR_LOG_OPEN	    	55	/* Failure to open log.xml file */
82 #define COL_ERROR_TSD_INIT	    	56	/* TSD could not be initialized */
83 #define COL_ERROR_UTIL_INIT	    	57	/* libcol_util.c could not be initialized */
84 #define COL_ERROR_MAPCACHE		58	/* Unable to cache mappings */
85 
86 #define COL_WARN_NONE			200	/* just a note, not a real warning */
87 #define COL_WARN_FSTYPE			201	/* Writing to a potentially-distorting file system */
88 #define COL_WARN_PROFRND		202	/* Profile interval rounded */
89 #define COL_WARN_SIZELIM		203	/* Size limit specified */
90 #define COL_WARN_SIGPROF		204	/* SIGPROF handler replaced */
91 #define COL_WARN_SMPLADJ                205     /* Periodic sampling rate adjusted */
92 #define COL_WARN_ITMROVR                206     /* Application interval timer resetting prevented */
93 #define COL_WARN_ITMRREP                207     /* Collection interval timer found to have been overridden */
94 #define COL_WARN_SIGEMT                 208	/* SIGEMT handler replaced */
95 #define COL_WARN_CPCBLK                 209     /* libcpc access blocked */
96 #define COL_WARN_VFORK                  210     /* vfork(2) switched to fork1(2) */
97 #define COL_WARN_EXECENV                211     /* incomplete exec environment */
98 #define COL_WARN_SAMPSIGUSED            212     /* target installed handler for sample signal */
99 #define COL_WARN_PAUSESIGUSED           213     /* target installed handler for pause signal */
100 #define COL_WARN_CPCNOTRESERVED         214     /* unable to reserve HW counters for kernel profiling */
101 #define COL_WARN_LIBTHREAD_T1           215     /* collection with classic libthread */
102 #define COL_WARN_SIGMASK                216     /* profiling signal masking overridden */
103 #define COL_WARN_NOFOLLOW               217     /* descendant following disabled */
104 #define COL_WARN_RISKYFOLLOW            218     /* descendant following unqualified */
105 #define COL_WARN_IDCHNG                 219     /* process ID change requested */
106 #define COL_WARN_OLDJAVA		220	/* Java profiling requires JVM version 1.4.2_02 or later */
107 #define COL_WARN_ITMRPOVR		221	/* Overriding app-set interval timer */
108 #define COL_WARN_NO_JAVA_HEAP		222	/* Java heap tracing not supported (JVM 1.5) */
109 #define COL_WARN_RDT_PAUSE_NOMEM        223     /* RDT paused because of running out of memory */
110 #define COL_WARN_RDT_RESUME             224     /* RDT resumed */
111 #define COL_WARN_RDT_THROVER            225     /* RDT: too many threads */
112 #define COL_WARN_THR_PAUSE_RESUME       226     /* use of thread pause/resume API is deprecateds */
113 #define COL_WARN_APP_NOT_READY          227     /* Application is not instrumented for RDT */
114 #define COL_WARN_RDT_DL_TERMINATE       228     /* RDT: terminate execution on actual deadlock */
115 #define COL_WARN_RDT_DL_TERMINATE_CORE  229     /* RDT: dump core and terminate execution on actual deadlock */
116 #define COL_WARN_RDT_DL_CONTINUE        230     /* RDT: continue execution on actual deadlock */
117 #define COL_WARN_NOPROF_DATA		231	/* No profile data recorded in experiment */
118 #define COL_WARN_LONG_FSTAT 		232	/* fstat call on /proc/self/map took > 200 ms. */
119 #define COL_WARN_LONG_READ 		233	/* read call on /proc/self/map took > 200 ms. */
120 #define COL_WARN_LINUX_X86_APICID	234	/* using x86 APIC IDs rather than Linux sched_getcpu() */
121 
122 #define COL_COMMENT_NONE                400     /* no comment */
123 #define COL_COMMENT_CWD			401     /* initial execution directory */
124 #define COL_COMMENT_ARGV		402     /* arguments */
125 #define COL_COMMENT_MAYASSNAP		403     /* Mayas snap file name */
126 #define COL_COMMENT_LINEFORK            404     /* process fork'd */
127 #define COL_COMMENT_LINEEXEC            405     /* process exec'd */
128 #define COL_COMMENT_LINECOMBO           406     /* process combo fork/exec */
129 #define COL_COMMENT_FOXSNAP		407     /* Fox snap file name */
130 #define COL_COMMENT_ROCKSNAP		408     /* Rock simulator snap file name */
131 #define COL_COMMENT_BITINSTRDATA	409     /* Bit instrdata file name */
132 #define COL_COMMENT_BITSNAP		410     /* Bit snap file name */
133 #define COL_COMMENT_SIMDSPSNAP		411     /* Simulator dataspace profiling snap file name */
134 #define COL_COMMENT_HWCADJ		412     /* HWC overflow interval adjusted */
135 #endif  /* _EMSGNUM_H */
136