gmon_out.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* gmon_out.h
  2. Copyright (C) 2000-2022 Free Software Foundation, Inc.
  3. This file is part of GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. /* A gmon.out file consists of a header (defined by gmon_hdr) followed
  17. by a sequence of records. Each record starts with a one-byte tag
  18. identifying the type of records, followed by records specific data. */
  19. #ifndef gmon_out_h
  20. #define gmon_out_h
  21. #define GMON_MAGIC "gmon" /* magic cookie */
  22. #define GMON_VERSION 1 /* version number */
  23. /* Raw header as it appears on file (without padding). */
  24. struct gmon_hdr
  25. {
  26. char cookie[4];
  27. char version[4];
  28. char spare[3 * 4];
  29. };
  30. /* Types of records in this file. */
  31. typedef enum
  32. {
  33. GMON_TAG_TIME_HIST = 0, GMON_TAG_CG_ARC = 1, GMON_TAG_BB_COUNT = 2
  34. }
  35. GMON_Record_Tag;
  36. #endif /* gmon_out_h */