Lines Matching full:basic
240 /* Display s390 CPU measurement facility basic-sampling data entry
247 struct hws_basic_entry *basic = basicp; in s390_cpumsf_basic_show() local
265 basic = &local; in s390_cpumsf_basic_show()
267 if (basic->def != 1) { in s390_cpumsf_basic_show()
268 pr_err("Invalid AUX trace basic entry [%#08zx]\n", pos); in s390_cpumsf_basic_show()
271 color_fprintf(stdout, color, " [%#08zx] Basic Def:%04x Inst:%#04x" in s390_cpumsf_basic_show()
274 pos, basic->def, basic->U, in s390_cpumsf_basic_show()
275 basic->T ? 'T' : ' ', in s390_cpumsf_basic_show()
276 basic->W ? 'W' : ' ', in s390_cpumsf_basic_show()
277 basic->P ? 'P' : ' ', in s390_cpumsf_basic_show()
278 basic->I ? 'I' : ' ', in s390_cpumsf_basic_show()
279 basic->AS, basic->prim_asn, basic->ia, basic->CL, in s390_cpumsf_basic_show()
280 basic->hpp, basic->gpp); in s390_cpumsf_basic_show()
364 * basic set entry size and diagnostic set entry size.
368 * Note: Old hardware does not set the basic or diagnostic entry sizes
376 struct hws_basic_entry *basic = (struct hws_basic_entry *)buf; in s390_cpumsf_validate() local
382 if (be16toh(basic->def) != 1) /* No basic set entry, must be first */ in s390_cpumsf_validate()
437 struct hws_basic_entry *basic; in s390_cpumsf_dump() local
458 /* Handle Basic entry */ in s390_cpumsf_dump()
459 basic = (struct hws_basic_entry *)(buf + pos); in s390_cpumsf_dump()
460 if (s390_cpumsf_basic_show(color, pos, basic)) in s390_cpumsf_dump()
504 struct hws_basic_entry *basic, in s390_cpumsf_make_event() argument
508 .ip = basic->ia, in s390_cpumsf_make_event()
509 .pid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
510 .tid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
518 if (basic->CL == 1) /* Native LPAR mode */ in s390_cpumsf_make_event()
519 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
521 else if (basic->CL == 2) /* Guest kernel/user space */ in s390_cpumsf_make_event()
522 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
524 else if (basic->gpp || basic->prim_asn != 0xffff) in s390_cpumsf_make_event()
526 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
529 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
537 __func__, pos, sample.ip, basic->P, basic->CL, sample.pid, in s390_cpumsf_make_event()
605 struct hws_basic_entry *basic; in s390_cpumsf_samples() local
635 /* Handle Basic entry */ in s390_cpumsf_samples()
636 basic = (struct hws_basic_entry *)(buf + pos); in s390_cpumsf_samples()
637 if (s390_cpumsf_make_event(pos, basic, sfq)) in s390_cpumsf_samples()