|
@@ -90,11 +90,13 @@ void storage_received(MsgBuffer &storage_buf)
|
|
|
}
|
|
}
|
|
|
printf("%u real, %u padding\n", real, padding);
|
|
printf("%u real, %u padding\n", real, padding);
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
for (uint32_t i=0;i<num_msgs; ++i) {
|
|
for (uint32_t i=0;i<num_msgs; ++i) {
|
|
|
printf("%3d: %08x %08x\n", i,
|
|
printf("%3d: %08x %08x\n", i,
|
|
|
*(uint32_t*)(storage_buf.buf+(i*msg_size)),
|
|
*(uint32_t*)(storage_buf.buf+(i*msg_size)),
|
|
|
*(uint32_t*)(storage_buf.buf+(i*msg_size+4)));
|
|
*(uint32_t*)(storage_buf.buf+(i*msg_size+4)));
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
// Sort the received messages by userid into the
|
|
// Sort the received messages by userid into the
|
|
|
// storage_state.stg_buf MsgBuffer.
|
|
// storage_state.stg_buf MsgBuffer.
|
|
|
#ifdef PROFILE_STORAGE
|
|
#ifdef PROFILE_STORAGE
|
|
@@ -107,11 +109,13 @@ void storage_received(MsgBuffer &storage_buf)
|
|
|
printf_with_rtclock_diff(start_sort, "end oblivious sort (%u)\n", storage_buf.inserted);
|
|
printf_with_rtclock_diff(start_sort, "end oblivious sort (%u)\n", storage_buf.inserted);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
for (uint32_t i=0;i<num_msgs; ++i) {
|
|
for (uint32_t i=0;i<num_msgs; ++i) {
|
|
|
printf("%3d: %08x %08x\n", i,
|
|
printf("%3d: %08x %08x\n", i,
|
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size)),
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size)),
|
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size+4)));
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size+4)));
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
#ifdef PROFILE_STORAGE
|
|
#ifdef PROFILE_STORAGE
|
|
|
unsigned long start_dest = printf_with_rtclock("begin setting dests (%u)\n", storage_state.stg_buf.bufsize);
|
|
unsigned long start_dest = printf_with_rtclock("begin setting dests (%u)\n", storage_state.stg_buf.bufsize);
|
|
@@ -153,11 +157,13 @@ void storage_received(MsgBuffer &storage_buf)
|
|
|
#ifdef PROFILE_STORAGE
|
|
#ifdef PROFILE_STORAGE
|
|
|
printf_with_rtclock_diff(start_expand, "end ORExpand (%u)\n", stg_size);
|
|
printf_with_rtclock_diff(start_expand, "end ORExpand (%u)\n", stg_size);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+ /*
|
|
|
for (uint32_t i=0;i<stg_size; ++i) {
|
|
for (uint32_t i=0;i<stg_size; ++i) {
|
|
|
printf("%3d: %08x %08x\n", i,
|
|
printf("%3d: %08x %08x\n", i,
|
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size)),
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size)),
|
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size+4)));
|
|
*(uint32_t*)(storage_state.stg_buf.buf+(i*msg_size+4)));
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
// You can do more processing after these lines, as long as they
|
|
// You can do more processing after these lines, as long as they
|
|
|
// don't touch storage_buf. They _can_ touch the backing buffer
|
|
// don't touch storage_buf. They _can_ touch the backing buffer
|