Lines Matching defs:hist_pad
5323 * The hist_pad structure is used to save information to create
5326 * a percpu array of 4 hist_pad structures is allocated.
5331 struct hist_pad {
5337 static struct hist_pad __percpu *hist_pads;
5341 /* One hist_pad for every context (normal, softirq, irq, NMI) */
5353 hist_pads = __alloc_percpu(sizeof(struct hist_pad) * MAX_HIST_CNT,
5354 __alignof__(struct hist_pad));
5373 static struct hist_pad *get_hist_pad(void)
5375 struct hist_pad *hist_pad;
5383 hist_pad = per_cpu_ptr(hist_pads, smp_processor_id());
5392 return &hist_pad[cnt];
5409 struct hist_pad *hist_pad;
5417 hist_pad = get_hist_pad();
5418 if (!hist_pad)
5421 memset(hist_pad->compound_key, 0, hist_data->key_size);
5427 unsigned long *entries = hist_pad->entries;
5452 add_to_key(hist_pad->compound_key, key, key_field, rec);
5456 key = hist_pad->compound_key;
5459 !resolve_var_refs(hist_data, key, hist_pad->var_ref_vals, false))
5466 hist_trigger_elt_update(hist_data, elt, buffer, rec, rbe, hist_pad->var_ref_vals);
5468 if (resolve_var_refs(hist_data, key, hist_pad->var_ref_vals, true)) {
5470 key, hist_pad->var_ref_vals);