| 1 | /* This file is part of the Linux Trace Toolkit viewer |
| 2 | * Copyright (C) 2003-2004 Michel Dagenais |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License Version 2 as |
| 6 | * published by the Free Software Foundation; |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 16 | * MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | #ifndef BATCH_ANALYSIS_H |
| 20 | #define BATCH_ANALYSIS_H |
| 21 | |
| 22 | /* The batch analysis module defines a main traceset and command line options |
| 23 | to specify the traces in the main traceset. It then processes that |
| 24 | traceset calling hooks lists at various stages of the analysis. |
| 25 | |
| 26 | The hooks lists are defined in the global attributes for these various |
| 27 | stages of the analysis. Loaded modules may add hooks to these lists. |
| 28 | Thus, by requesting that a certain module be loaded, the analysis may |
| 29 | produce additional information as the module adds hooks and these hooks |
| 30 | are called during the analysis. |
| 31 | |
| 32 | The hooks lists defined are as follows. These may be split in more |
| 33 | specific lists eventually to select the hooks applicable to state update, |
| 34 | incremental or batch processing... |
| 35 | |
| 36 | /hooks/traceset/before |
| 37 | Before analyzing a traceset. |
| 38 | |
| 39 | /hooks/traceset/after |
| 40 | After analyzing a traceset. |
| 41 | |
| 42 | /hooks/trace/before |
| 43 | Before each trace. |
| 44 | |
| 45 | /hooks/trace/after |
| 46 | After each trace. |
| 47 | |
| 48 | /hooks/tracefile/before |
| 49 | Before each tracefile. |
| 50 | |
| 51 | /hooks/tracefile/after |
| 52 | After each tracefile. |
| 53 | |
| 54 | /hooks/event/before |
| 55 | Before each event. |
| 56 | |
| 57 | /hooks/event/after |
| 58 | After each event. |
| 59 | |
| 60 | */ |
| 61 | |
| 62 | #endif // BATCH_ANALYSIS_H |