fix multi compile table hit path bug
This commit is contained in:
@@ -1789,20 +1789,20 @@ size_t maat_get_hit_paths(struct maat *maat_instance, struct maat_state *state,
|
||||
compile_table_cnt = state->n_compile_table;
|
||||
}
|
||||
|
||||
size_t hit_path_index = 0;
|
||||
//size_t sum_hit_paths = 0;
|
||||
size_t sum_hit_path = 0;
|
||||
|
||||
for (size_t i = 0; i < compile_table_cnt; i++) {
|
||||
void *compile_rt = table_manager_get_runtime(maat_instance->tbl_mgr, compile_table_ids[i]);
|
||||
void *g2g_runtime = table_manager_get_runtime(maat_instance->tbl_mgr, maat_instance->g2g_table_id);
|
||||
assert(NULL != compile_rt && NULL != g2g_runtime);
|
||||
size_t n_hit_path = compile_runtime_get_hit_paths((struct compile_runtime *)compile_rt,
|
||||
(struct group2group_runtime *)g2g_runtime,
|
||||
state->compile_state, paths, hit_path_index,
|
||||
state->compile_state, paths, sum_hit_path,
|
||||
n_path);
|
||||
hit_path_index += n_hit_path;
|
||||
sum_hit_path += n_hit_path;
|
||||
}
|
||||
|
||||
return hit_path_index;
|
||||
return sum_hit_path;
|
||||
}
|
||||
|
||||
size_t maat_get_hit_objects(struct maat_compile_state *compile_state,
|
||||
|
||||
Reference in New Issue
Block a user