Lines Matching full:basic

239 /* Display s390 CPU measurement facility basic-sampling data entry
246 struct hws_basic_entry *basic = basicp; in s390_cpumsf_basic_show() local
264 basic = &local; in s390_cpumsf_basic_show()
266 if (basic->def != 1) { in s390_cpumsf_basic_show()
267 pr_err("Invalid AUX trace basic entry [%#08zx]\n", pos); in s390_cpumsf_basic_show()
270 color_fprintf(stdout, color, " [%#08zx] Basic Def:%04x Inst:%#04x" in s390_cpumsf_basic_show()
273 pos, basic->def, basic->U, in s390_cpumsf_basic_show()
274 basic->T ? 'T' : ' ', in s390_cpumsf_basic_show()
275 basic->W ? 'W' : ' ', in s390_cpumsf_basic_show()
276 basic->P ? 'P' : ' ', in s390_cpumsf_basic_show()
277 basic->I ? 'I' : ' ', in s390_cpumsf_basic_show()
278 basic->AS, basic->prim_asn, basic->ia, basic->CL, in s390_cpumsf_basic_show()
279 basic->hpp, basic->gpp); in s390_cpumsf_basic_show()
363 * basic set entry size and diagnostic set entry size.
367 * Note: Old hardware does not set the basic or diagnostic entry sizes
375 struct hws_basic_entry *basic = (struct hws_basic_entry *)buf; in s390_cpumsf_validate() local
381 if (be16toh(basic->def) != 1) /* No basic set entry, must be first */ in s390_cpumsf_validate()
436 struct hws_basic_entry *basic; in s390_cpumsf_dump() local
457 /* Handle Basic entry */ in s390_cpumsf_dump()
458 basic = (struct hws_basic_entry *)(buf + pos); in s390_cpumsf_dump()
459 if (s390_cpumsf_basic_show(color, pos, basic)) in s390_cpumsf_dump()
503 struct hws_basic_entry *basic, in s390_cpumsf_make_event() argument
507 .ip = basic->ia, in s390_cpumsf_make_event()
508 .pid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
509 .tid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
517 if (basic->CL == 1) /* Native LPAR mode */ in s390_cpumsf_make_event()
518 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
520 else if (basic->CL == 2) /* Guest kernel/user space */ in s390_cpumsf_make_event()
521 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
523 else if (basic->gpp || basic->prim_asn != 0xffff) in s390_cpumsf_make_event()
525 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
528 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
536 __func__, pos, sample.ip, basic->P, basic->CL, sample.pid, in s390_cpumsf_make_event()
604 struct hws_basic_entry *basic; in s390_cpumsf_samples() local
634 /* Handle Basic entry */ in s390_cpumsf_samples()
635 basic = (struct hws_basic_entry *)(buf + pos); in s390_cpumsf_samples()
636 if (s390_cpumsf_make_event(pos, basic, sfq)) in s390_cpumsf_samples()