Commit | Line | Data |
---|---|---|
0c9bad2e BH |
1 | /******************************************************************************* |
2 | * Copyright (c) 2010 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Bernd Hufmann - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
b12f4544 FC |
13 | package org.eclipse.linuxtools.lttng; |
14 | ||
15 | /** | |
0c9bad2e BH |
16 | * <b><u>LttngConstants</u></b> |
17 | * <p> | |
18 | * Declaration of LTTng specific constants. | |
19 | * <p> | |
b12f4544 FC |
20 | */ |
21 | public class LttngConstants { | |
22 | ||
23 | /** | |
24 | * <h4>Number of bits of an integer to be used for statistic node identifier. </h4> | |
25 | */ | |
26 | public static final int STATS_ID_SHIFT = 28; | |
27 | /** | |
28 | * <h4>Maximum number of trace ids to be created, before wrapping around to 0. </h4> | |
29 | * Note that there is a tight coupling to STATS_ID_SHIFT, because the trace id is | |
30 | * also used for statistics node identification. | |
31 | */ | |
32 | public static final int MAX_NUMBER_OF_TRACES_ID = (1 << STATS_ID_SHIFT) - 1; | |
33 | public static final int STATS_ID_MASK = MAX_NUMBER_OF_TRACES_ID; | |
34 | ||
35 | /** | |
36 | * <h4>Statistic node identifier for unknown/none kernel submode. </h4> | |
37 | */ | |
38 | public static final int STATS_NONE_ID = 0x1 << STATS_ID_SHIFT; | |
39 | /** | |
40 | * <h4>Statistic node identifier for IRQ kernel submodes. </h4> | |
41 | */ | |
42 | public static final int STATS_IRQ_NAME_ID = 0x2 << STATS_ID_SHIFT; | |
43 | /** | |
44 | * <h4>Statistic node identifier for soft IRQ kernel submodes. </h4> | |
45 | */ | |
46 | public static final int STATS_SOFT_IRQ_NAME_ID = 0x3 << STATS_ID_SHIFT; | |
47 | /** | |
48 | * <h4>Statistic node identifier for sys_call kernel submodes.</h4> | |
49 | */ | |
50 | public static final int STATS_SYS_CALL_NAME_ID = 0x4 << STATS_ID_SHIFT; | |
51 | /** | |
52 | * <h4>Statistic node identifier for trab kernel submodes. </h4> | |
53 | */ | |
54 | public static final int STATS_TRAP_NAME_ID = 0x5 << STATS_ID_SHIFT; | |
55 | /** | |
56 | * <h4>Statistic node identifier for the trace. </h4> | |
57 | */ | |
58 | public static final int STATS_TRACE_NAME_ID = 0x6 << STATS_ID_SHIFT; | |
59 | /** | |
60 | * <h4>Statistic node identifier for the CPU IDs. </h4> | |
61 | */ | |
62 | public static final int STATS_CPU_ID = 0x7 << STATS_ID_SHIFT; | |
63 | /** | |
64 | * <h4>Statistic node identifier for the kernel modes. </h4> | |
65 | */ | |
66 | public static final int STATS_MODE_ID = 0x8 << STATS_ID_SHIFT; | |
67 | /** | |
68 | * <h4>Statistic node identifier for the kernel function IDs. </h4> | |
69 | */ | |
70 | public static final int STATS_FUNCTION_ID = 0x9 << STATS_ID_SHIFT; | |
71 | /** | |
72 | * <h4>Statistic node identifier for the process IDs. </h4> | |
73 | */ | |
74 | public static final int STATS_PROCESS_ID = 0xA << STATS_ID_SHIFT; | |
75 | /** | |
76 | * <h4>Statistic node identifier for the event types. </h4> | |
77 | */ | |
78 | public static final int STATS_TYPE_ID = 0xB << STATS_ID_SHIFT; | |
79 | /** | |
80 | * <h4>Statistic node identifier for the event types. </h4> | |
81 | */ | |
82 | public static final int STATS_CATEGORY_ID = 0xC << STATS_ID_SHIFT; | |
83 | ||
8016d660 FC |
84 | /** |
85 | * <h4>Background requests block size </h4> | |
86 | */ | |
87 | public static final int DEFAULT_BLOCK_SIZE = 50000; | |
b12f4544 | 88 | } |