Lines Matching refs:newcounters
2474 static void counters_nomap(STRUCT_COUNTERS_INFO *newcounters, unsigned int idx) in counters_nomap() argument
2476 newcounters->counters[idx] = ((STRUCT_COUNTERS) { 0, 0}); in counters_nomap()
2480 static void counters_normal_map(STRUCT_COUNTERS_INFO *newcounters, in counters_normal_map() argument
2491 newcounters->counters[idx] = repl->counters[mappos]; in counters_normal_map()
2495 static void counters_map_zeroed(STRUCT_COUNTERS_INFO *newcounters, in counters_map_zeroed() argument
2506 subtract_counters(&newcounters->counters[idx], in counters_map_zeroed()
2512 static void counters_map_set(STRUCT_COUNTERS_INFO *newcounters, in counters_map_set() argument
2517 memcpy(&newcounters->counters[idx], counters, in counters_map_set()
2529 STRUCT_COUNTERS_INFO *newcounters; in TC_COMMIT() local
2571 newcounters = malloc(counterlen); in TC_COMMIT()
2572 if (!newcounters) { in TC_COMMIT()
2576 memset(newcounters, 0, counterlen); in TC_COMMIT()
2612 strcpy(newcounters->name, handle->info.name); in TC_COMMIT()
2613 newcounters->num_counters = new_number; in TC_COMMIT()
2623 counters_nomap(newcounters, c->foot_index); in TC_COMMIT()
2626 counters_normal_map(newcounters, repl, in TC_COMMIT()
2631 counters_map_zeroed(newcounters, repl, in TC_COMMIT()
2637 counters_map_set(newcounters, c->foot_index, in TC_COMMIT()
2647 counters_nomap(newcounters, r->index); in TC_COMMIT()
2651 counters_normal_map(newcounters, repl, in TC_COMMIT()
2657 counters_map_zeroed(newcounters, repl, in TC_COMMIT()
2664 counters_map_set(newcounters, r->index, in TC_COMMIT()
2676 write(fd, newcounters, counterlen); in TC_COMMIT()
2683 newcounters, counterlen); in TC_COMMIT()
2689 free(newcounters); in TC_COMMIT()
2695 free(newcounters); in TC_COMMIT()