blob: 6268ae1e0930500b6315d75b0b66ecac6bbbfe1d [file] [log] [blame]
Mike Dodd8cfa7022010-11-17 11:12:26 -08001/**
2 * @file format_flags.h
3 * output options
4 *
5 * @remark Copyright 2002 OProfile authors
6 * @remark Read the file COPYING
7 *
8 * @author John Levon
9 * @author Philippe Elie
10 */
11
12#ifndef FORMAT_FLAGS_H
13#define FORMAT_FLAGS_H
14
15/**
16 * flags passed to the ctor of an output_symbol object.
17 *
18 * \sa format_output::formatter
19 */
20enum format_flags {
21 ff_none = 0,
22 /// a formatted memory address
23 ff_vma = 1 << 0,
24 /// output debug filename and line nr.
25 ff_linenr_info = 1 << 1,
26 /// output the image name for this line
27 ff_image_name = 1 << 3,
28 /// output owning application name
29 ff_app_name = 1 << 4,
30 /// output the (demangled) symbol name
31 ff_symb_name = 1 << 5,
32
33 /** @name subset of flags used by opreport_formatter */
34 //@{
35 /// number of samples
36 ff_nr_samples = 1 << 6,
37 /// number of samples accumulated
38 ff_nr_samples_cumulated = 1 << 7,
39 /// relative percentage of samples
40 ff_percent = 1 << 8,
41 /// relative percentage of samples accumulated
42 ff_percent_cumulated = 1 << 9,
43 /**
44 * Output percentage for details, not relative
45 * to symbol but relative to the total nr of samples
46 */
47 ff_percent_details = 1 << 10,
48 /**
49 * Output percentage for details, not relative
50 * to symbol but relative to the total nr of samples,
51 * accumulated
52 */
53 ff_percent_cumulated_details = 1 << 11,
54 /// output diff value
55 ff_diff = 1 << 12,
56 //@}
57};
58
59
60/**
61 * General hints about formatting of the columnar output.
62 */
63enum column_flags {
64 cf_none = 0,
65 cf_64bit_vma = 1 << 0,
66 cf_image_name = 1 << 1
67};
68
69#endif // FORMAT_FLAGS_H