temporary re-factoring project
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / statistics / evProcessor / StatsTimeCountHandlers.java
1 /*******************************************************************************
2 * Copyright (c) 2009 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 * Yann N. Dauphin (dhaemon@gmail.com) - Implementation for stats
11 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.statistics.evProcessor;
13
14 import org.eclipse.linuxtools.lttng.state.StateStrings.Events;
15 import org.eclipse.linuxtools.lttng.state.evProcessor.IEventProcessing;
16
17 /**
18 * Process the system call entry event
19 *
20 * @author alvaro
21 *
22 */
23 class StatsTimeCountHandlers {
24
25 /**
26 * Method to handle the event: LTT_EVENT_SYSCALL_ENTRY
27 *
28 * @return
29 */
30 final IEventProcessing getSyscallEntryBeforeHandler() {
31 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_SYSCALL_ENTRY);
32 return handler;
33 }
34
35 /**
36 * Method to handle the event: LTT_EVENT_SYSCALL_EXIT
37 *
38 * @return
39 */
40 final IEventProcessing getsySyscallExitBeforeHandler() {
41 AbstractStatsEventHandler handler = new StatsModeEndHandler(Events.LTT_EVENT_SYSCALL_EXIT);
42 return handler;
43 }
44
45 /**
46 * Method to handle the event: LTT_EVENT_TRAP_ENTRY
47 *
48 * @return
49 */
50 final IEventProcessing getTrapEntryBeforeHandler() {
51 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_TRAP_ENTRY);
52 return handler;
53 }
54
55 /**
56 * Method to handle the event: LTT_EVENT_TRAP_EXIT
57 *
58 * @return
59 */
60 final IEventProcessing getTrapExitBeforeHandler() {
61 AbstractStatsEventHandler handler = new StatsModeEndHandler(Events.LTT_EVENT_TRAP_EXIT);
62 return handler;
63 }
64
65 /**
66 * Method to handle the event: LTT_EVENT_IRQ_ENTRY
67 *
68 * @return
69 */
70 final IEventProcessing getIrqEntryBeforeHandler() {
71 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_IRQ_ENTRY);
72 return handler;
73 }
74
75 /**
76 * Method to handle the event: LTT_EVENT_IRQ_EXIT
77 *
78 * @return
79 */
80 final IEventProcessing getIrqExitBeforeHandler() {
81 AbstractStatsEventHandler handler = new StatsModeEndHandler(Events.LTT_EVENT_IRQ_EXIT);
82 return handler;
83 }
84
85 /**
86 * Method to handle the event: LTT_EVENT_SOFT_IRQ_ENTRY
87 *
88 * @return
89 */
90 final IEventProcessing getSoftIrqEntryBeforeHandler() {
91 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_SOFT_IRQ_ENTRY);
92 return handler;
93 }
94
95 /**
96 * Method to handle the event: LTT_EVENT_SOFT_IRQ_EXIT
97 *
98 * @return
99 */
100 final IEventProcessing getSoftIrqExitBeforeHandler() {
101 AbstractStatsEventHandler handler = new StatsModeEndHandler(Events.LTT_EVENT_SOFT_IRQ_EXIT);
102 return handler;
103 }
104
105 /**
106 * <p>
107 * Handles event: LTT_EVENT_FUNCTION_ENTRY
108 * </p>
109 * <p>
110 * FIELDS: LTT_FIELD_THIS_FN, LTT_FIELD_CALL_SITE
111 * </p>
112 *
113 * @return
114 */
115 final IEventProcessing getFunctionEntryBeforeHandler() {
116 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_FUNCTION_ENTRY);
117 return handler;
118 }
119
120 /**
121 *
122 * @return
123 */
124 final IEventProcessing getFunctionExitBeforeHandler() {
125 AbstractStatsEventHandler handler = new StatsModeEndHandler(Events.LTT_EVENT_FUNCTION_EXIT);
126 return handler;
127 }
128
129 /**
130 * <p>
131 * Handles: LTT_EVENT_SCHED_SCHEDULE
132 * </p>
133 * <p>
134 * Fields: LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE
135 * </p>
136 *
137 * @return
138 */
139 final IEventProcessing getSchedChangeBeforeHandler() {
140 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_SCHED_SCHEDULE);
141 return handler;
142 }
143
144 /**
145 * <p>
146 * Handles: LTT_EVENT_SCHED_SCHEDULE
147 * </p>
148 * <p>
149 * Fields: LTT_FIELD_PREV_PID, LTT_FIELD_NEXT_PID, LTT_FIELD_PREV_STATE
150 * </p>
151 *
152 * @return
153 */
154 final IEventProcessing getSchedChangeAfterHandler() {
155 AbstractStatsEventHandler handler = new StatsModeChangeHandler(Events.LTT_EVENT_SCHED_SCHEDULE);
156 return handler;
157 }
158
159 }
This page took 0.034007 seconds and 6 git commands to generate.