| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012, 2013 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 | package org.eclipse.linuxtools.internal.lttng2.control.ui.views.dialogs; |
| 13 | |
| 14 | import java.util.List; |
| 15 | |
| 16 | /** |
| 17 | * <p> |
| 18 | * Interface for providing information about kernel events to be enabled. |
| 19 | * </p> |
| 20 | * |
| 21 | * @author Bernd Hufmann |
| 22 | */ |
| 23 | public interface IEnableKernelEvents { |
| 24 | |
| 25 | // ------------------------------------------------------------------------ |
| 26 | // Accessors |
| 27 | // ------------------------------------------------------------------------ |
| 28 | |
| 29 | /** |
| 30 | * @return a flag whether the tracepoints shall be configured. |
| 31 | */ |
| 32 | boolean isTracepoints(); |
| 33 | |
| 34 | /** |
| 35 | * @return a flag indicating whether all tracepoints shall be enabled or not. |
| 36 | */ |
| 37 | boolean isAllTracePoints(); |
| 38 | |
| 39 | /** |
| 40 | * @return a flag whether the syscalls shall be configured. |
| 41 | */ |
| 42 | boolean isSysCalls(); |
| 43 | |
| 44 | /** |
| 45 | * @return a flag indicating whether syscalls shall be enabled or not. |
| 46 | */ |
| 47 | boolean isAllSysCalls(); |
| 48 | |
| 49 | /** |
| 50 | * @return a list of event names to be enabled. |
| 51 | */ |
| 52 | List<String> getEventNames(); |
| 53 | |
| 54 | /** |
| 55 | * @return a flag whether the dynamic probe shall be configured. |
| 56 | */ |
| 57 | boolean isDynamicProbe(); |
| 58 | |
| 59 | /** |
| 60 | * @return event name of the dynamic probe (or null if no dynamic probe). |
| 61 | */ |
| 62 | String getProbeEventName(); |
| 63 | |
| 64 | /** |
| 65 | * @return the dynamic probe (or null if no dynamic probe). |
| 66 | */ |
| 67 | String getProbeName(); |
| 68 | |
| 69 | /** |
| 70 | * @return a flag whether the dynamic function entry/return probe shall be configured. |
| 71 | */ |
| 72 | boolean isDynamicFunctionProbe(); |
| 73 | |
| 74 | /** |
| 75 | * @return event name of the dynamic function entry/exit probe (or null if no dynamic probe). |
| 76 | */ |
| 77 | String getFunctionEventName(); |
| 78 | |
| 79 | /** |
| 80 | * @return the dynamic function entry/exit probe (or null if no dynamic probe). |
| 81 | */ |
| 82 | String getFunction(); |
| 83 | |
| 84 | } |