totals
struct gem_size_totals *totals)
totals->size += bo->base.base.size;
totals->resident += resident_size;
totals->reclaimable += resident_size;
struct gem_size_totals totals = {0};
panfrost_gem_debugfs_bo_print(bo, m, &totals);
totals.size, totals.resident, totals.reclaimable);
struct gem_size_totals *totals)
totals->size += bo->base.base.size;
totals->resident += resident_size;
totals->reclaimable += resident_size;
struct gem_size_totals totals = {0};
panthor_gem_debugfs_bo_print(bo, m, &totals);
totals.size, totals.resident, totals.reclaimable);
struct block_map_statistics totals;
memset(&totals, 0, sizeof(struct block_map_statistics));
totals.dirty_pages += READ_ONCE(stats->dirty_pages);
totals.clean_pages += READ_ONCE(stats->clean_pages);
totals.free_pages += READ_ONCE(stats->free_pages);
totals.failed_pages += READ_ONCE(stats->failed_pages);
totals.incoming_pages += READ_ONCE(stats->incoming_pages);
totals.outgoing_pages += READ_ONCE(stats->outgoing_pages);
totals.cache_pressure += READ_ONCE(stats->cache_pressure);
totals.read_count += READ_ONCE(stats->read_count);
totals.write_count += READ_ONCE(stats->write_count);
totals.failed_reads += READ_ONCE(stats->failed_reads);
totals.failed_writes += READ_ONCE(stats->failed_writes);
totals.reclaimed += READ_ONCE(stats->reclaimed);
totals.read_outgoing += READ_ONCE(stats->read_outgoing);
totals.found_in_cache += READ_ONCE(stats->found_in_cache);
totals.discard_required += READ_ONCE(stats->discard_required);
totals.wait_for_page += READ_ONCE(stats->wait_for_page);
totals.fetch_required += READ_ONCE(stats->fetch_required);
totals.pages_loaded += READ_ONCE(stats->pages_loaded);
totals.pages_saved += READ_ONCE(stats->pages_saved);
totals.flush_count += READ_ONCE(stats->flush_count);
return totals;
struct block_allocator_statistics totals;
memset(&totals, 0, sizeof(totals));
totals.slab_count += allocator->slab_count;
totals.slabs_opened += READ_ONCE(stats->slabs_opened);
totals.slabs_reopened += READ_ONCE(stats->slabs_reopened);
return totals;
struct ref_counts_statistics totals;
memset(&totals, 0, sizeof(totals));
totals.blocks_written +=
return totals;
struct slab_journal_statistics totals;
memset(&totals, 0, sizeof(totals));
totals.disk_full_count += READ_ONCE(stats->disk_full_count);
totals.flush_count += READ_ONCE(stats->flush_count);
totals.blocked_count += READ_ONCE(stats->blocked_count);
totals.blocks_written += READ_ONCE(stats->blocks_written);
totals.tail_busy_count += READ_ONCE(stats->tail_busy_count);
return totals;
u64 *totals, *tot;
totals = data + netdev->real_num_tx_queues * ARRAY_SIZE(txq_stat_names);
tot = totals;
totals = data + fp->num_xdpqs * ARRAY_SIZE(xdpq_stat_names);
tot = totals;
totals = data + netdev->real_num_rx_queues * ARRAY_SIZE(rxq_stat_names);
tot = totals;
struct nfs_iostats totals = { };
totals.events[i] += stats->events[i];
totals.bytes[i] += stats->bytes[i];
seq_printf(m, "%lu ", totals.events[i]);
seq_printf(m, "%Lu ", totals.bytes[i]);
out->totals.xmit += pps;
out->totals.drop_xmit += drop;
out->totals.err += err;
print_always(FMT_COLUMNl, RX(out->totals.rx));
print_always(FMT_COLUMNl, REDIR(out->totals.redir));
out->totals.err + out->totals.drop + out->totals.drop_xmit,
printf(FMT_COLUMNl, XMIT(out->totals.xmit));
} totals;
if (sample_out.totals.rx) {
double pkts = sample_out.totals.rx;
sample_out.totals.rx);
if (sample_out.totals.redir) {
double pkts = sample_out.totals.redir;
sample_out.totals.redir);
if (sample_out.totals.drop)
sample_out.totals.drop);
if (sample_out.totals.drop_xmit)
sample_out.totals.drop_xmit);
if (sample_out.totals.err)
sample_out.totals.err);
if (sample_out.totals.xmit) {
double pkts = sample_out.totals.xmit;
sample_out.totals.xmit);
sample_out.totals.rx += out->totals.rx;
sample_out.totals.redir += out->totals.redir;
sample_out.totals.drop += out->totals.drop;
sample_out.totals.drop_xmit += out->totals.drop_xmit;
sample_out.totals.err += out->totals.err;
sample_out.totals.xmit += out->totals.xmit;
out->totals.rx += pps;
out->totals.drop += drop;
out->totals.err += err;
out->totals.redir += pps;
out->totals.err += sum;
out->totals.err += sum;
out->totals.xmit += pps;
out->totals.drop_xmit += drop;
out->totals.err += err;
totals();
totals();
struct total_run_stats totals;
memset(&totals, 0, sizeof(totals));
totals.sched = sched;
machine__for_each_thread(m, show_thread_runtime, &totals);
task_count = totals.task_count;
totals.sched_count += r->run_stats.n;
totals.task_count, totals.sched_count);
print_sched_time(totals.total_run_time, 2);