Commit | Line | Data |
---|---|---|
3e97fbfa | 1 | /******************************************************************************* |
94cce698 | 2 | * Copyright (c) 2012, 2013 Ericsson |
3e97fbfa AM |
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 | * Alexandre Montplaisir - Initial API and implementation | |
11 | ******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.internal.lttng2.kernel.core; | |
14 | ||
d85d2a6d AM |
15 | /** |
16 | * State values that are used in the kernel event handler. It's much better to | |
17 | * use integer values whenever possible, since those take much less space in the | |
18 | * history file. | |
19 | * | |
20 | * @author alexmont | |
21 | * | |
22 | */ | |
23 | @SuppressWarnings("javadoc") | |
3e97fbfa AM |
24 | public class StateValues { |
25 | ||
26 | /* CPU Status */ | |
27 | public static final int CPU_STATUS_IDLE = 0; | |
a080bb93 AM |
28 | public static final int CPU_STATUS_RUN_USERMODE = 1; |
29 | public static final int CPU_STATUS_RUN_SYSCALL = 2; | |
30 | public static final int CPU_STATUS_IRQ = 3; | |
31 | public static final int CPU_STATUS_SOFTIRQ = 4; | |
3e97fbfa AM |
32 | |
33 | /* Process status */ | |
ac5b890f | 34 | public static final int PROCESS_STATUS_UNKNOWN = 0; |
f2338178 | 35 | public static final int PROCESS_STATUS_WAIT_BLOCKED = 1; |
3e97fbfa AM |
36 | public static final int PROCESS_STATUS_RUN_USERMODE = 2; |
37 | public static final int PROCESS_STATUS_RUN_SYSCALL = 3; | |
38 | public static final int PROCESS_STATUS_INTERRUPTED = 4; | |
f2338178 | 39 | public static final int PROCESS_STATUS_WAIT_FOR_CPU = 5; |
3e97fbfa AM |
40 | |
41 | /* SoftIRQ-specific stuff. -1: null/disabled, >= 0: running on that CPU */ | |
42 | public static final int SOFT_IRQ_RAISED = -2; | |
43 | } |