|
1 // Copyright (c) 2009-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\nkernsmp\nk_bal.h |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef __NK_BAL_H__ |
|
24 #define __NK_BAL_H__ |
|
25 #include <cpudefs.h> |
|
26 #include <nkern.h> |
|
27 |
|
28 #define __LOAD_BALANCE_INFO_DEFINED__ |
|
29 |
|
30 struct SLbInfo |
|
31 { |
|
32 TUint64HL iRecentTime; |
|
33 TUint64HL iRecentCpuTime; |
|
34 TUint64HL iRecentActiveTime; |
|
35 TUint16 iLbRunTime; |
|
36 TUint16 iLbActTime; |
|
37 TUint16 iLbRunAct; |
|
38 TUint16 iLbRunAvg; |
|
39 TUint16 iLbActAvg; |
|
40 TUint16 iLbRunActAvg; |
|
41 TUint8 iLbNomPri; |
|
42 TUint8 iLbHot; |
|
43 TUint8 iLbWarm; |
|
44 TUint8 iLbAffinity; |
|
45 TUint8 iLbHeavy; |
|
46 TUint8 iLbSpare1; |
|
47 TUint8 iLbSpare2; |
|
48 TUint8 iLbSpare3; |
|
49 TUint8 iLbSpare4; |
|
50 TUint8 iLbSpare5; |
|
51 TUint8 iLbSpare6; |
|
52 TUint8 iLbSpare7; |
|
53 }; |
|
54 |
|
55 #define DUMP_LOAD_BALANCE_INFO(s) \ |
|
56 Printf("RecentTime %08x %08x\r\n", (s)->iLbInfo.iRecentTime.i32[1], (s)->iLbInfo.iRecentTime.i32[0]), \ |
|
57 Printf("RecentCpuTime %08x %08x RecentActivTime %08x %08x\r\n", (s)->iLbInfo.iRecentCpuTime.i32[1], (s)->iLbInfo.iRecentCpuTime.i32[0], (s)->iLbInfo.iRecentActiveTime.i32[1], (s)->iLbInfo.iRecentActiveTime.i32[0]), \ |
|
58 Printf("LbRunTime %03x LbActTime %03x LbRunAct %03x\r\n", (s)->iLbInfo.iLbRunTime, (s)->iLbInfo.iLbActTime, (s)->iLbInfo.iLbRunAct), \ |
|
59 Printf("LbRunAvg %03x LbActAvg %03x LbRunActAvg %03x\r\n", (s)->iLbInfo.iLbRunAvg, (s)->iLbInfo.iLbActAvg, (s)->iLbInfo.iLbRunActAvg), \ |
|
60 Printf("LbNomPri %02x LbHot %02x LbWarm %02x LbAffinity %02x\r\n", (s)->iLbInfo.iLbNomPri, (s)->iLbInfo.iLbHot, (s)->iLbInfo.iLbWarm, (s)->iLbInfo.iLbAffinity), \ |
|
61 Printf("LbHeavy %02x", (s)->iLbInfo.iLbHeavy) |
|
62 |
|
63 #endif |