annotate TaskManager/Cell/spe/CellDmaManager.cc @ 1125:b733c7903d07 draft

remove old code
author yutaka@localhost.localdomain
date Sat, 12 Feb 2011 04:03:25 +0900
parents c43f49400c22
children 801d57ae1e29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
61
6bc72fde6615 *** empty log message ***
gongo
parents: 59
diff changeset
1 #include <stdio.h>
88
504899860e66 *** empty log message ***
gongo
parents: 61
diff changeset
2 #include <stdlib.h>
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
3 #include "CellDmaManager.h"
736
1b225972ae88 cut printf
hiroki@localhost.localdomain
parents: 676
diff changeset
4 #include "Scheduler.h"
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
5
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
6
1001
ca59327dccab error fix.
root@henri.cr.ie.u-ryukyu.ac.jp
parents: 999
diff changeset
7 unsigned long long alloc_flag = 0;
1009
16afbf03e5d2 not yet....
yutaka@localhost.localdomain
parents: 1007
diff changeset
8
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
9 /**
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
10 * DMA Load
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
11 *
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
12 * @param[in] buf Buffer of Load Data
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
13 * @param[in] addr Address of Load Data at Main Memory
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
14 * @param[in] size Size of Load Data
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
15 * @param[in] mask DMA tag
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
16 */
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
17 void CellDmaManager::dma_load(void *buf, memaddr addr, uint32 size, uint32 mask)
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
18 {
1091
49f404f9d51c minor fix
yutaka@localhost.localdomain
parents: 1090
diff changeset
19
1090
c5797afaaff1 fix getTapestry return index. debug bus error
yutaka@localhost.localdomain
parents: 1071
diff changeset
20 if ((unsigned long)addr&0xf) {
c5797afaaff1 fix getTapestry return index. debug bus error
yutaka@localhost.localdomain
parents: 1071
diff changeset
21 printf("dma_load is not aligned. addr = 0x%lx, size = %d\n",
c5797afaaff1 fix getTapestry return index. debug bus error
yutaka@localhost.localdomain
parents: 1071
diff changeset
22 (unsigned long)addr, size);
c5797afaaff1 fix getTapestry return index. debug bus error
yutaka@localhost.localdomain
parents: 1071
diff changeset
23 return ;
1091
49f404f9d51c minor fix
yutaka@localhost.localdomain
parents: 1090
diff changeset
24 }
49f404f9d51c minor fix
yutaka@localhost.localdomain
parents: 1090
diff changeset
25
88
504899860e66 *** empty log message ***
gongo
parents: 61
diff changeset
26 if (size == 0) return ;
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
27 mfc_get((volatile void *)buf, addr, size, mask, 0, 0);
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
28
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
29 }
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
30
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
31 /**
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
32 * DMA Store
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
33 *
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
34 * @param[in] buf Buffer of Store Data at SPE
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
35 * @param[in] addr Address of Store Data at Main Memory
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
36 * @param[in] size Size of Store Data
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
37 * @param[in] mask DMA tag
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
38 */
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
39 void CellDmaManager::dma_store(void *buf, memaddr addr, uint32 size, uint32 mask)
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
40 {
88
504899860e66 *** empty log message ***
gongo
parents: 61
diff changeset
41 if (size == 0) return ;
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
42 mfc_put((volatile void *)buf, addr, size, mask, 0, 0);
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
43 }
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
44
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
45 void CellDmaManager::dma_wait(uint32 mask)
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
46 {
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
47
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
48 (this->*start_dmawait_profile)();
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
49 mfc_write_tag_mask(1 << mask);
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
50 mfc_write_tag_update_all();
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
51 mfc_read_tag_status();
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
52 __asm__ __volatile__(" sync");
675
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
53 (this->*end_dmawait_profile)(&global_wait_time);
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
54
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
55 }
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
56
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
57 void CellDmaManager::dma_wait(uint32 mask, int cmd)
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
58 {
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
59
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
60 unsigned long long wait = 0;
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
61
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
62 (this->*start_dmawait_profile)();
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
63 mfc_write_tag_mask(1 << mask);
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
64 mfc_write_tag_update_all();
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
65 mfc_read_tag_status();
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
66 __asm__ __volatile__(" sync");
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
67 (this->*end_dmawait_profile)(&wait);
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
68
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
69 global_wait_time += wait;
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
70
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
71 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
72
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
73 void CellDmaManager::mail_write(memaddr data)
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
74 {
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
75 (this->*start_dmawait_profile)();
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
76 spu_write_out_mbox((uint32)data);
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
77 #if 0
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
78 if (ABIBIT>32) {
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
79 unsigned long data0 = (unsigned long)data;
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
80 spu_write_out_mbox((uint32)(data0>>32));
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
81 }
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
82 #endif
675
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
83 (this->*end_dmawait_profile)(&global_mail_time);
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
84 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
85
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
86 // mail を queue にしたみた。mailの書き出しの待ちあるのかわからないけど
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
87 //TASK_LIST_MAIL は仕事が最後に溜まってしまうけど、MailQueueなら出来る時にmailを書き出す
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
88 //ので多少は効果あるといいな。
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
89 void CellDmaManager::mail_write_queue(memaddr data)
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
90 {
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
91
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
92
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
93
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
94 unsigned long long wait = 0;
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
95
1009
16afbf03e5d2 not yet....
yutaka@localhost.localdomain
parents: 1007
diff changeset
96 if (0 != spu_readchcnt(SPU_WrOutMbox)) {
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
97 if (mail_queue->count()) {
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
98 (this->*start_dmawait_profile)();
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
99 spu_write_out_mbox((uint32)data);
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
100 (this->*end_dmawait_profile)(&wait);
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
101 mail_write_time += wait;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
102 global_wait_time += wait;
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
103 } else {
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
104
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
105 //mail_queue から poll する
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
106 (this->*start_dmawait_profile)();
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
107 spu_write_out_mbox((uint32)mail_queue->recv());
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
108 (this->*end_dmawait_profile)(&wait);
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
109 mail_write_time += wait;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
110 global_wait_time += wait;
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
111 //mail_queue に加える
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
112 mail_queue->send(data);
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
113
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
114 }
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
115 } else {
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
116
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
117 mail_queue->send(data);
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
118
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
119 }
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
120
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
121 }
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
122
1125
b733c7903d07 remove old code
yutaka@localhost.localdomain
parents: 1124
diff changeset
123 // tasklist がもうない場合に、MailQueue 全部を書き出す
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
124 void CellDmaManager::mail_write_finish_list(memaddr data)
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
125 {
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
126
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
127 unsigned long long wait = 0;
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
128
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
129 while (mail_queue->count()) {
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
130 (this->*start_dmawait_profile)();
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
131 spu_write_out_mbox((uint32)mail_queue->recv());
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
132 (this->*end_dmawait_profile)(&wait);
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
133
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
134 global_mail_time += wait;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
135 finish_mail_write_time += wait;
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
136
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
137 }
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
138
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
139 (this->*start_dmawait_profile)();
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
140 spu_write_out_mbox((uint32)data);
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
141 (this->*end_dmawait_profile)(&wait);
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
142
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
143 global_mail_time += wait;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
144 finish_mail_write_time += wait;
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
145
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
146 }
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 1001
diff changeset
147
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
148 memaddr CellDmaManager::mail_read()
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
149 {
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
150
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
151
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
152 unsigned long long wait = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
153
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
154 (this->*start_dmawait_profile)();
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
155 memaddr data = (memaddr)spu_read_in_mbox();
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
156
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
157 #if 0
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
158 if (ABIBIT>32) {
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
159 data += (spu_read_in_mbox()<<32);
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
160 }
871
d30617ef4b20 fix get segment dma tag zero problem
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
161 #endif
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
162 (this->*end_dmawait_profile)(&wait);
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
163
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
164 global_mail_time += wait;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
165 mail_read_time += wait;
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
166
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
167 return data;
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
168 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
169
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
170 memaddr CellDmaManager::task_list_mail_read()
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
171 {
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
172
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
173 unsigned long long wait = 0;
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
174
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
175 (this->*start_dmawait_profile)();
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
176 memaddr data = (memaddr)spu_read_in_mbox();
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
177 (this->*end_dmawait_profile)(&wait);
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
178
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
179
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
180 task_list_mail_read_time += wait;
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
181 global_mail_time += wait;
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
182 task_list_read_count += 1;
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
183
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
184 return data;
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
185 }
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
186
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
187
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
188
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
189 void CellDmaManager::dma_loadList(ListDataPtr list, void *buff, uint32 mask)
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
190 {
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
191 mfc_getl(buff, 0, list->element, sizeof(mfc_list_element_t)*list->length,
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
192 mask, 0, 0);
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
193 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
194
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
195 void CellDmaManager::dma_storeList(ListDataPtr list, void *buff, uint32 mask)
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
196 {
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
197 mfc_putl(buff, 0, list->element, sizeof(mfc_list_element_t)*list->length,
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
198 mask, 0, 0);
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
199 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
200
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
201
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
202 CellDmaManager::CellDmaManager()
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
203 {
1009
16afbf03e5d2 not yet....
yutaka@localhost.localdomain
parents: 1007
diff changeset
204
1021
47ca99c5cf84 use MailManager
yutaka@localhost.localdomain
parents: 1015
diff changeset
205 mail_queue = new MailManager();
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
206 stop_profile();
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
207 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
208 void
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
209 CellDmaManager::start_profile()
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
210 {
925
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
211 global_busy_time = 0;
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
212 global_mail_time = 0;
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
213 global_wait_time = 0;
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
214 task_list_mail_read_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
215 finish_mail_write_time = 0;
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
216 task_list_read_count = 0;
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
217
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
218 mail_read_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
219 mail_write_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
220
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
221 start_dmawait_profile = &CellDmaManager::do_start_dmawait_profile;
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
222 end_dmawait_profile = &CellDmaManager::do_end_dmawait_profile;
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
223
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
224 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
225
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
226 void
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
227 CellDmaManager::stop_profile()
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
228 {
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
229 start_dmawait_profile = &CellDmaManager::null_start_dmawait_profile;
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
230 end_dmawait_profile = &CellDmaManager::null_end_dmawait_profile;
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
231 }
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
232
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
233 /**
180
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
234 * DMA Wait
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
235 *
e3b7776b1420 いろいろ fix 。詳しくは TaskManager/Changelog、test_render/Changelog を
gongo@localhost.localdomain
parents: 109
diff changeset
236 * @param[in] mask Tag for Wait DMA process
59
16f9f6251f49 *** empty log message ***
gongo
parents:
diff changeset
237 */
275
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 273
diff changeset
238 void
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
239 CellDmaManager::do_start_dmawait_profile()
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
240 {
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
241
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
242 wait_time = spu_readch(SPU_RdDec);
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
243 global_busy_time += busy_time - wait_time;
1071
5fda85b39dc2 comment out printf
yutaka@localhost.localdomain
parents: 1053
diff changeset
244 //printf("busy_time = %d, wait_time = %d\n", busy_time, wait_time);
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
245 spu_writech(SPU_WrDec, 0xffffffff);
999
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
246
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
247 // Measurement of mainMem_alloc
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
248 mainMemalloc_time += (alloc_busy_time - wait_time)*alloc_flag;
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
249 }
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
250
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
251
275
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 273
diff changeset
252 void
676
fbccad536db1 mail time
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 675
diff changeset
253 CellDmaManager::do_end_dmawait_profile(unsigned long long *counter)
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
254 {
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
255 wait_time = spu_readch(SPU_RdDec);
1053
root@localhost.localdomain
parents: 1025
diff changeset
256 //printf("wait_time = %d", wait_time);
675
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
257 *counter += 0xffffffff - wait_time;
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
258 busy_time = wait_time;
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
259
999
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
260 // Measurement of mainMem_alloc
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
261 alloc_busy_time = wait_time;
242
23e76c5369b7 dma_wait
e065746@localhost.localdomain
parents: 240
diff changeset
262 }
239
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
263
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
264 void CellDmaManager::null_start_dmawait_profile() {}
676
fbccad536db1 mail time
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 675
diff changeset
265 void CellDmaManager::null_end_dmawait_profile(unsigned long long *counter) {}
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
266
239
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 180
diff changeset
267 void
736
1b225972ae88 cut printf
hiroki@localhost.localdomain
parents: 676
diff changeset
268 CellDmaManager::show_dma_wait(Scheduler *s, int cpu)
255
45e849a81763 show dma wait
tkaito@localhost.localdomain
parents: 242
diff changeset
269 {
45e849a81763 show dma wait
tkaito@localhost.localdomain
parents: 242
diff changeset
270
675
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
271 double r = ((double)global_busy_time)/((double)(
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 672
diff changeset
272 global_busy_time+global_wait_time+global_mail_time
676
fbccad536db1 mail time
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 675
diff changeset
273 ))*100.0;
924
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
274
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
275 double d = ((double)global_wait_time)/((double)(
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
276 global_busy_time+global_wait_time+global_mail_time
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
277 ))*100.0;
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
278
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
279 double m = ((double)global_mail_time)/((double)(
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
280 global_busy_time+global_wait_time+global_mail_time
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
281 ))*100.0;
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
282
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
283 double tr = ((double)task_list_mail_read_time)/((double)(
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
284 global_busy_time+global_wait_time+global_mail_time
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
285 ))*100.0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
286
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
287 double tw = ((double)finish_mail_write_time)/((double)(
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
288 global_busy_time+global_wait_time+global_mail_time
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
289 ))*100.0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
290
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
291 double mr = ((double)mail_read_time)/((double)(
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
292 global_busy_time+global_wait_time+global_mail_time
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
293 ))*100.0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
294
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
295 double mw = ((double)mail_write_time)/((double)(
1025
41dd7cf4f678 minor fix
yutaka@localhost.localdomain
parents: 1024
diff changeset
296 global_busy_time+global_wait_time+global_mail_time
41dd7cf4f678 minor fix
yutaka@localhost.localdomain
parents: 1024
diff changeset
297 ))*100.0;
41dd7cf4f678 minor fix
yutaka@localhost.localdomain
parents: 1024
diff changeset
298
41dd7cf4f678 minor fix
yutaka@localhost.localdomain
parents: 1024
diff changeset
299
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
300 s->printf("spu%d:\n busy_time = %lld"
924
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
301 " wait_time = %lld(%.3g%%), "
1640b14ec15a show dma wait format
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 871
diff changeset
302 " mail_time = %lld(%.3g%%), "
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
303 " mail_read_time = %lld(%.3g%%), "
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
304 " mail_write_time = %lld(%.3g%%),\n"
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
305 " task_list_mail_read_time = %lld(%.3g%%), "
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
306 " finish_mail_write_time = %lld(%.3g%%) "
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
307 " busy_ratio = %.3g%%, \n"
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
308 " task_list_read_count = %d"
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
309 " average_tasklist_mail_time = %lld"
999
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
310 " mainMem_alloc_time = %lld\n"
970
1a4849b2acad change pipeline and TaskArray fast
Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
parents: 925
diff changeset
311 ,cpu, global_busy_time,
1024
cf0ad93028e9 add task list mail time profile.
yutaka@localhost.localdomain
parents: 1023
diff changeset
312 global_wait_time, d, global_mail_time, m,
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
313 mail_read_time, mr,
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
314 mail_write_time, mw,
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
315 task_list_mail_read_time, tr,
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
316 finish_mail_write_time, tw,
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
317 r,
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1091
diff changeset
318 task_list_read_count,
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
319 task_list_mail_read_time / task_list_read_count,
999
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
320 mainMemalloc_time);
925
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
321
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
322 global_busy_time = 0;
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
323 global_mail_time = 0;
292bb8c79cdb add profile in Redering Engine
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 924
diff changeset
324 global_wait_time = 0;
1124
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
325
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
326 mail_read_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
327 mail_write_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
328
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
329 task_list_mail_read_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
330 finish_mail_write_time = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
331 task_list_read_count = 0;
c43f49400c22 add mail profile
yutaka@localhost.localdomain
parents: 1123
diff changeset
332
999
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
333 mainMemalloc_time = 0;
aed8b3ca5537 Measurement of mainMem_alloc at waiting time. not done.
tkaito
parents: 970
diff changeset
334 alloc_flag = 0;
255
45e849a81763 show dma wait
tkaito@localhost.localdomain
parents: 242
diff changeset
335 }
45e849a81763 show dma wait
tkaito@localhost.localdomain
parents: 242
diff changeset
336
604
78c0cb72ea61 fix mail box size
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 364
diff changeset
337
78c0cb72ea61 fix mail box size
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 364
diff changeset
338 /* end */