1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
18 * Created on: 2009-apr-19
\r
25 * http://ltt.polymtl.ca/tracingwiki/index.php/TracingBook
\r
26 * http://developer.apple.com/tools/performance/optimizingwithsystemtrace.html
\r
27 * http://benno.id.au/docs/lttng_data_format.pml
\r
40 STRACE_CH_TASK = (1<<1),
\r
41 STRACE_CH_KERNEL = (1<<2),
\r
45 STRACE_EV_ISR_START,
\r
47 STRACE_EV_TASK_START,
\r
48 STRACE_EV_TASK_STOP,
\r
52 struct strace_attr_s {
\r
54 /* A timestamp in some unit */
\r
61 * @param ch channel to record
\r
63 void strace( strace_ev_t event) {
\r
67 case STRACE_CH_TASK:
\r
75 void strace_init( strace_ch_t ch ) {
\r
79 void strace_print( void ) {
\r