Skip to content
This repository
Newer
Older
100644 87 lines (77 sloc) 2.793 kb
4bc042bb » Patrick Titiano
2012-09-21 initial public release v1.50
1 /*
2 *
3 * @Component OMAPCONF
4 * @Filename trace.h
5 * @Description OMAP Common Trace Definitions and Functions
6 * @Author Patrick Titiano (p-titiano@ti.com)
7 * @Author Louis Lamia (loulamia@ti.com)
8 * @Date 2011
9 * @Copyright Texas Instruments Incorporated
10 *
11 *
12 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
13 *
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 *
19 * Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 *
22 * Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the
25 * distribution.
26 *
27 * Neither the name of Texas Instruments Incorporated nor the names of
28 * its contributors may be used to endorse or promote products derived
29 * from this software without specific prior written permission.
30 *
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 *
43 */
44
45
46 #ifndef __TRACE_H__
47 #define __TRACE_H__
48
49
50 #define TRACE_PERF_DEFAULT_CAPTURE_TIME 10 /* second */
51 #define TRACE_PERF_DEFAULT_DELAY_TIME 0 /* second */
52 #define TRACE_PERF_DEFAULT_SAMPLING_RATE ((double) 0.1) /* second */
53 #define TRACE_PERF_MIN_SAMPLING_RATE ((double) 0.1) /* second */
54 static const char trace_perf_default_cfgfile[32] = "trace_perf_config.dat";
55
56
57 typedef enum {
58 /* Generic */
59 CPU0_LOAD = 0,
60 CPU1_LOAD,
61 TOTAL_CPU_LOAD,
62 CPU1_ONLINE_TIME,
63 /* OMAP[4-5] Specific */
64 CPU_FREQ,
65 GPU_FREQ,
66 L3_FREQ,
67 /* OMAP4 Specific */
68 EMIF_LOAD,
69 BANDGAP_TEMP,
70 PCB_TEMP,
71 HOTSPOT_TEMP,
72 /* OMAP5 Specific */
73 MPU_TEMP,
74 GPU_TEMP,
75 CORE_TEMP,
76 CASE_TEMP,
77 NUM_ITEMS
78 } traceables;
79
80
81 int trace_perf_setup(const char *filename);
82 int trace_perf_capture(const char *cfgfile, const char *prefix,
83 double sampling_rate, unsigned int capture_time,
84 unsigned int delay_time);
85
86
87 #endif
Something went wrong with that request. Please try again.