Home
last modified time | relevance | path

Searched refs:stat_data (Results 1 – 3 of 3) sorted by relevance

/linux/samples/bpf/
H A Dcpustat_user.c37 static struct cpu_stat_data stat_data[MAX_CPU]; variable
65 data = &stat_data[j]; in cpu_stat_print()
87 stat_data[c].cstate[i] = value; in cpu_stat_update()
93 stat_data[c].pstate[i] = value; in cpu_stat_update()
/linux/tools/perf/util/
H A Dbpf_lock_contention.c205 struct contention_data stat_data; in update_lock_stat() local
229 if (bpf_map_lookup_elem(map_fd, &stat_key, &stat_data) < 0) in update_lock_stat()
232 stat_data.total_time += delta; in update_lock_stat()
233 stat_data.count++; in update_lock_stat()
235 if (delta > stat_data.max_time) in update_lock_stat()
236 stat_data.max_time = delta; in update_lock_stat()
237 if (delta < stat_data.min_time) in update_lock_stat()
238 stat_data.min_time = delta; in update_lock_stat()
240 bpf_map_update_elem(map_fd, &stat_key, &stat_data, BPF_EXIST); in update_lock_stat()
/linux/virt/kvm/
H A Dkvm_main.c1001 struct kvm_stat_data *stat_data; in kvm_create_vm_debugfs() local
1033 stat_data = kzalloc(sizeof(*stat_data), GFP_KERNEL_ACCOUNT); in kvm_create_vm_debugfs()
1034 if (!stat_data) in kvm_create_vm_debugfs()
1037 stat_data->kvm = kvm; in kvm_create_vm_debugfs()
1038 stat_data->desc = pdesc; in kvm_create_vm_debugfs()
1039 stat_data->kind = KVM_STAT_VM; in kvm_create_vm_debugfs()
1040 kvm->debugfs_stat_data[i] = stat_data; in kvm_create_vm_debugfs()
1042 kvm->debugfs_dentry, stat_data, in kvm_create_vm_debugfs()
1048 stat_data = kzalloc(sizeof(*stat_data), GFP_KERNEL_ACCOUNT); in kvm_create_vm_debugfs()
1049 if (!stat_data) in kvm_create_vm_debugfs()
[all …]