[Trusty][Coverage] Update counter to let Trusty know coverage dump has been read
Bug: 339194547 Change-Id: I075742200998e837e59ba9c24e4dca8b5d4d1199
This commit is contained in:
parent
e451837298
commit
b47c9b065f
|
@ -60,6 +60,7 @@ void Controller::run(std::string output_dir) {
|
||||||
filename.insert(0, output_dir);
|
filename.insert(0, output_dir);
|
||||||
android::base::Result<void> res = record_list_[index]->SaveFile(filename);
|
android::base::Result<void> res = record_list_[index]->SaveFile(filename);
|
||||||
counters[index]++;
|
counters[index]++;
|
||||||
|
WRITE_ONCE(control->read_buffer_cnt, counters[index]);
|
||||||
}
|
}
|
||||||
if(complete_cnt == counters[index] &&
|
if(complete_cnt == counters[index] &&
|
||||||
!(flags & FLAG_RUN)) {
|
!(flags & FLAG_RUN)) {
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
struct control {
|
struct control {
|
||||||
/* Written by controller, read by instrumented TA */
|
/* Written by controller, read by instrumented TA */
|
||||||
uint64_t cntrl_flags;
|
uint64_t cntrl_flags;
|
||||||
|
uint64_t read_buffer_cnt;
|
||||||
|
|
||||||
/* Written by instrumented TA, read by controller */
|
/* Written by instrumented TA, read by controller */
|
||||||
uint64_t oper_flags;
|
|
||||||
uint64_t write_buffer_start_count;
|
uint64_t write_buffer_start_count;
|
||||||
uint64_t write_buffer_complete_count;
|
uint64_t write_buffer_complete_count;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue