aarch64-none-linux-gnu-gcov-tool.1 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "GCOV-TOOL 1"
  132. .TH GCOV-TOOL 1 "2021-06-21" "gcc-10.3.1" "GNU"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. gcov\-tool \- offline gcda profile processing tool
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. gcov-tool [\fB\-v\fR|\fB\-\-version\fR] [\fB\-h\fR|\fB\-\-help\fR]
  142. .PP
  143. gcov-tool merge [merge\-options] \fIdirectory1\fR \fIdirectory2\fR
  144. [\fB\-o\fR|\fB\-\-output\fR \fIdirectory\fR]
  145. [\fB\-v\fR|\fB\-\-verbose\fR]
  146. [\fB\-w\fR|\fB\-\-weight\fR \fIw1,w2\fR]
  147. .PP
  148. gcov-tool rewrite [rewrite\-options] \fIdirectory\fR
  149. [\fB\-n\fR|\fB\-\-normalize\fR \fIlong_long_value\fR]
  150. [\fB\-o\fR|\fB\-\-output\fR \fIdirectory\fR]
  151. [\fB\-s\fR|\fB\-\-scale\fR \fIfloat_or_simple\-frac_value\fR]
  152. [\fB\-v\fR|\fB\-\-verbose\fR]
  153. .PP
  154. gcov-tool overlap [overlap\-options] \fIdirectory1\fR \fIdirectory2\fR
  155. [\fB\-f\fR|\fB\-\-function\fR]
  156. [\fB\-F\fR|\fB\-\-fullname\fR]
  157. [\fB\-h\fR|\fB\-\-hotonly\fR]
  158. [\fB\-o\fR|\fB\-\-object\fR]
  159. [\fB\-t\fR|\fB\-\-hot_threshold\fR] \fIfloat\fR
  160. [\fB\-v\fR|\fB\-\-verbose\fR]
  161. .SH "DESCRIPTION"
  162. .IX Header "DESCRIPTION"
  163. \&\fBgcov-tool\fR is an offline tool to process gcc's gcda profile files.
  164. .PP
  165. Current gcov-tool supports the following functionalities:
  166. .IP "*" 4
  167. merge two sets of profiles with weights.
  168. .IP "*" 4
  169. read one set of profile and rewrite profile contents. One can scale or
  170. normalize the count values.
  171. .PP
  172. Examples of the use cases for this tool are:
  173. .IP "*" 4
  174. Collect the profiles for different set of inputs, and use this tool to merge
  175. them. One can specify the weight to factor in the relative importance of
  176. each input.
  177. .IP "*" 4
  178. Rewrite the profile after removing a subset of the gcda files, while maintaining
  179. the consistency of the summary and the histogram.
  180. .IP "*" 4
  181. It can also be used to debug or libgcov code as the tools shares the majority
  182. code as the runtime library.
  183. .PP
  184. Note that for the merging operation, this profile generated offline may
  185. contain slight different values from the online merged profile. Here are
  186. a list of typical differences:
  187. .IP "*" 4
  188. histogram difference: This offline tool recomputes the histogram after merging
  189. the counters. The resulting histogram, therefore, is precise. The online
  190. merging does not have this capability \*(-- the histogram is merged from two
  191. histograms and the result is an approximation.
  192. .IP "*" 4
  193. summary checksum difference: Summary checksum uses a \s-1CRC32\s0 operation. The value
  194. depends on the link list order of gcov-info objects. This order is different in
  195. gcov-tool from that in the online merge. It's expected to have different
  196. summary checksums. It does not really matter as the compiler does not use this
  197. checksum anywhere.
  198. .IP "*" 4
  199. value profile counter values difference: Some counter values for value profile
  200. are runtime dependent, like heap addresses. It's normal to see some difference
  201. in these kind of counters.
  202. .SH "OPTIONS"
  203. .IX Header "OPTIONS"
  204. .IP "\fB\-h\fR" 4
  205. .IX Item "-h"
  206. .PD 0
  207. .IP "\fB\-\-help\fR" 4
  208. .IX Item "--help"
  209. .PD
  210. Display help about using \fBgcov-tool\fR (on the standard output), and
  211. exit without doing any further processing.
  212. .IP "\fB\-v\fR" 4
  213. .IX Item "-v"
  214. .PD 0
  215. .IP "\fB\-\-version\fR" 4
  216. .IX Item "--version"
  217. .PD
  218. Display the \fBgcov-tool\fR version number (on the standard output),
  219. and exit without doing any further processing.
  220. .IP "\fBmerge\fR" 4
  221. .IX Item "merge"
  222. Merge two profile directories.
  223. .RS 4
  224. .IP "\fB\-o\fR \fIdirectory\fR" 4
  225. .IX Item "-o directory"
  226. .PD 0
  227. .IP "\fB\-\-output\fR \fIdirectory\fR" 4
  228. .IX Item "--output directory"
  229. .PD
  230. Set the output profile directory. Default output directory name is
  231. \&\fImerged_profile\fR.
  232. .IP "\fB\-v\fR" 4
  233. .IX Item "-v"
  234. .PD 0
  235. .IP "\fB\-\-verbose\fR" 4
  236. .IX Item "--verbose"
  237. .PD
  238. Set the verbose mode.
  239. .IP "\fB\-w\fR \fIw1\fR\fB,\fR\fIw2\fR" 4
  240. .IX Item "-w w1,w2"
  241. .PD 0
  242. .IP "\fB\-\-weight\fR \fIw1\fR\fB,\fR\fIw2\fR" 4
  243. .IX Item "--weight w1,w2"
  244. .PD
  245. Set the merge weights of the \fIdirectory1\fR and \fIdirectory2\fR,
  246. respectively. The default weights are 1 for both.
  247. .RE
  248. .RS 4
  249. .RE
  250. .IP "\fBrewrite\fR" 4
  251. .IX Item "rewrite"
  252. Read the specified profile directory and rewrite to a new directory.
  253. .RS 4
  254. .IP "\fB\-n\fR \fIlong_long_value\fR" 4
  255. .IX Item "-n long_long_value"
  256. .PD 0
  257. .IP "\fB\-\-normalize <long_long_value>\fR" 4
  258. .IX Item "--normalize <long_long_value>"
  259. .PD
  260. Normalize the profile. The specified value is the max counter value
  261. in the new profile.
  262. .IP "\fB\-o\fR \fIdirectory\fR" 4
  263. .IX Item "-o directory"
  264. .PD 0
  265. .IP "\fB\-\-output\fR \fIdirectory\fR" 4
  266. .IX Item "--output directory"
  267. .PD
  268. Set the output profile directory. Default output name is \fIrewrite_profile\fR.
  269. .IP "\fB\-s\fR \fIfloat_or_simple\-frac_value\fR" 4
  270. .IX Item "-s float_or_simple-frac_value"
  271. .PD 0
  272. .IP "\fB\-\-scale\fR \fIfloat_or_simple\-frac_value\fR" 4
  273. .IX Item "--scale float_or_simple-frac_value"
  274. .PD
  275. Scale the profile counters. The specified value can be in floating point value,
  276. or simple fraction value form, such 1, 2, 2/3, and 5/3.
  277. .IP "\fB\-v\fR" 4
  278. .IX Item "-v"
  279. .PD 0
  280. .IP "\fB\-\-verbose\fR" 4
  281. .IX Item "--verbose"
  282. .PD
  283. Set the verbose mode.
  284. .RE
  285. .RS 4
  286. .RE
  287. .IP "\fBoverlap\fR" 4
  288. .IX Item "overlap"
  289. Compute the overlap score between the two specified profile directories.
  290. The overlap score is computed based on the arc profiles. It is defined as
  291. the sum of min (p1_counter[i] / p1_sum_all, p2_counter[i] / p2_sum_all),
  292. for all arc counter i, where p1_counter[i] and p2_counter[i] are two
  293. matched counters and p1_sum_all and p2_sum_all are the sum of counter
  294. values in profile 1 and profile 2, respectively.
  295. .RS 4
  296. .IP "\fB\-f\fR" 4
  297. .IX Item "-f"
  298. .PD 0
  299. .IP "\fB\-\-function\fR" 4
  300. .IX Item "--function"
  301. .PD
  302. Print function level overlap score.
  303. .IP "\fB\-F\fR" 4
  304. .IX Item "-F"
  305. .PD 0
  306. .IP "\fB\-\-fullname\fR" 4
  307. .IX Item "--fullname"
  308. .PD
  309. Print full gcda filename.
  310. .IP "\fB\-h\fR" 4
  311. .IX Item "-h"
  312. .PD 0
  313. .IP "\fB\-\-hotonly\fR" 4
  314. .IX Item "--hotonly"
  315. .PD
  316. Only print info for hot objects/functions.
  317. .IP "\fB\-o\fR" 4
  318. .IX Item "-o"
  319. .PD 0
  320. .IP "\fB\-\-object\fR" 4
  321. .IX Item "--object"
  322. .PD
  323. Print object level overlap score.
  324. .IP "\fB\-t\fR \fIfloat\fR" 4
  325. .IX Item "-t float"
  326. .PD 0
  327. .IP "\fB\-\-hot_threshold <float>\fR" 4
  328. .IX Item "--hot_threshold <float>"
  329. .PD
  330. Set the threshold for hot counter value.
  331. .IP "\fB\-v\fR" 4
  332. .IX Item "-v"
  333. .PD 0
  334. .IP "\fB\-\-verbose\fR" 4
  335. .IX Item "--verbose"
  336. .PD
  337. Set the verbose mode.
  338. .RE
  339. .RS 4
  340. .RE
  341. .SH "SEE ALSO"
  342. .IX Header "SEE ALSO"
  343. \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7), \fIgcc\fR\|(1), \fIgcov\fR\|(1) and the Info entry for
  344. \&\fIgcc\fR.
  345. .SH "COPYRIGHT"
  346. .IX Header "COPYRIGHT"
  347. Copyright (c) 2014\-2020 Free Software Foundation, Inc.
  348. .PP
  349. Permission is granted to copy, distribute and/or modify this document
  350. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  351. any later version published by the Free Software Foundation; with the
  352. Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
  353. Free Software\*(R", the Front-Cover texts being (a) (see below), and with
  354. the Back-Cover Texts being (b) (see below). A copy of the license is
  355. included in the \fIgfdl\fR\|(7) man page.
  356. .PP
  357. (a) The \s-1FSF\s0's Front-Cover Text is:
  358. .PP
  359. .Vb 1
  360. \& A GNU Manual
  361. .Ve
  362. .PP
  363. (b) The \s-1FSF\s0's Back-Cover Text is:
  364. .PP
  365. .Vb 3
  366. \& You have freedom to copy and modify this GNU Manual, like GNU
  367. \& software. Copies published by the Free Software Foundation raise
  368. \& funds for GNU development.
  369. .Ve