Lines Matching refs:err

253 static int arm_spe_pkt_out_string(int *err, char **buf_p, size_t *blen,  in arm_spe_pkt_out_string()  argument
260 if (err && *err) in arm_spe_pkt_out_string()
261 return *err; in arm_spe_pkt_out_string()
268 if (err && !*err) in arm_spe_pkt_out_string()
269 *err = ret; in arm_spe_pkt_out_string()
282 if (err && !*err) in arm_spe_pkt_out_string()
283 *err = ret; in arm_spe_pkt_out_string()
296 int err = 0; in arm_spe_pkt_desc_event() local
298 arm_spe_pkt_out_string(&err, &buf, &buf_len, "EV"); in arm_spe_pkt_desc_event()
301 arm_spe_pkt_out_string(&err, &buf, &buf_len, " EXCEPTION-GEN"); in arm_spe_pkt_desc_event()
303 arm_spe_pkt_out_string(&err, &buf, &buf_len, " RETIRED"); in arm_spe_pkt_desc_event()
305 arm_spe_pkt_out_string(&err, &buf, &buf_len, " L1D-ACCESS"); in arm_spe_pkt_desc_event()
307 arm_spe_pkt_out_string(&err, &buf, &buf_len, " L1D-REFILL"); in arm_spe_pkt_desc_event()
309 arm_spe_pkt_out_string(&err, &buf, &buf_len, " TLB-ACCESS"); in arm_spe_pkt_desc_event()
311 arm_spe_pkt_out_string(&err, &buf, &buf_len, " TLB-REFILL"); in arm_spe_pkt_desc_event()
313 arm_spe_pkt_out_string(&err, &buf, &buf_len, " NOT-TAKEN"); in arm_spe_pkt_desc_event()
315 arm_spe_pkt_out_string(&err, &buf, &buf_len, " MISPRED"); in arm_spe_pkt_desc_event()
317 arm_spe_pkt_out_string(&err, &buf, &buf_len, " LLC-ACCESS"); in arm_spe_pkt_desc_event()
319 arm_spe_pkt_out_string(&err, &buf, &buf_len, " LLC-REFILL"); in arm_spe_pkt_desc_event()
321 arm_spe_pkt_out_string(&err, &buf, &buf_len, " REMOTE-ACCESS"); in arm_spe_pkt_desc_event()
323 arm_spe_pkt_out_string(&err, &buf, &buf_len, " ALIGNMENT"); in arm_spe_pkt_desc_event()
325 arm_spe_pkt_out_string(&err, &buf, &buf_len, " SVE-PARTIAL-PRED"); in arm_spe_pkt_desc_event()
327 arm_spe_pkt_out_string(&err, &buf, &buf_len, " SVE-EMPTY-PRED"); in arm_spe_pkt_desc_event()
329 return err; in arm_spe_pkt_desc_event()
336 int err = 0; in arm_spe_pkt_desc_op_type() local
341 arm_spe_pkt_out_string(&err, &buf, &buf_len, "SVE-OTHER"); in arm_spe_pkt_desc_op_type()
344 arm_spe_pkt_out_string(&err, &buf, &buf_len, " EVLEN %d", in arm_spe_pkt_desc_op_type()
348 arm_spe_pkt_out_string(&err, &buf, &buf_len, " FP"); in arm_spe_pkt_desc_op_type()
350 arm_spe_pkt_out_string(&err, &buf, &buf_len, " PRED"); in arm_spe_pkt_desc_op_type()
352 arm_spe_pkt_out_string(&err, &buf, &buf_len, "OTHER"); in arm_spe_pkt_desc_op_type()
353 arm_spe_pkt_out_string(&err, &buf, &buf_len, " %s", in arm_spe_pkt_desc_op_type()
359 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_op_type()
364 arm_spe_pkt_out_string(&err, &buf, &buf_len, " AT"); in arm_spe_pkt_desc_op_type()
366 arm_spe_pkt_out_string(&err, &buf, &buf_len, " EXCL"); in arm_spe_pkt_desc_op_type()
368 arm_spe_pkt_out_string(&err, &buf, &buf_len, " AR"); in arm_spe_pkt_desc_op_type()
373 arm_spe_pkt_out_string(&err, &buf, &buf_len, " SIMD-FP"); in arm_spe_pkt_desc_op_type()
376 arm_spe_pkt_out_string(&err, &buf, &buf_len, " GP-REG"); in arm_spe_pkt_desc_op_type()
379 arm_spe_pkt_out_string(&err, &buf, &buf_len, " UNSPEC-REG"); in arm_spe_pkt_desc_op_type()
382 arm_spe_pkt_out_string(&err, &buf, &buf_len, " NV-SYSREG"); in arm_spe_pkt_desc_op_type()
385 arm_spe_pkt_out_string(&err, &buf, &buf_len, " MTE-TAG"); in arm_spe_pkt_desc_op_type()
388 arm_spe_pkt_out_string(&err, &buf, &buf_len, " MEMCPY"); in arm_spe_pkt_desc_op_type()
391 arm_spe_pkt_out_string(&err, &buf, &buf_len, " MEMSET"); in arm_spe_pkt_desc_op_type()
399 arm_spe_pkt_out_string(&err, &buf, &buf_len, " EVLEN %d", in arm_spe_pkt_desc_op_type()
403 arm_spe_pkt_out_string(&err, &buf, &buf_len, " PRED"); in arm_spe_pkt_desc_op_type()
405 arm_spe_pkt_out_string(&err, &buf, &buf_len, " SG"); in arm_spe_pkt_desc_op_type()
409 arm_spe_pkt_out_string(&err, &buf, &buf_len, "B"); in arm_spe_pkt_desc_op_type()
412 arm_spe_pkt_out_string(&err, &buf, &buf_len, " COND"); in arm_spe_pkt_desc_op_type()
415 arm_spe_pkt_out_string(&err, &buf, &buf_len, " IND"); in arm_spe_pkt_desc_op_type()
420 err = -1; in arm_spe_pkt_desc_op_type()
424 return err; in arm_spe_pkt_desc_op_type()
433 int err = 0; in arm_spe_pkt_desc_addr() local
443 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr()
448 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr()
456 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr()
462 err = -1; in arm_spe_pkt_desc_addr()
466 return err; in arm_spe_pkt_desc_addr()
474 int err = 0; in arm_spe_pkt_desc_counter() local
476 arm_spe_pkt_out_string(&err, &buf, &buf_len, "%s %d ", name, in arm_spe_pkt_desc_counter()
481 arm_spe_pkt_out_string(&err, &buf, &buf_len, "TOT"); in arm_spe_pkt_desc_counter()
484 arm_spe_pkt_out_string(&err, &buf, &buf_len, "ISSUE"); in arm_spe_pkt_desc_counter()
487 arm_spe_pkt_out_string(&err, &buf, &buf_len, "XLAT"); in arm_spe_pkt_desc_counter()
493 return err; in arm_spe_pkt_desc_counter()
504 int err = 0; in arm_spe_pkt_desc() local
510 arm_spe_pkt_out_string(&err, &buf, &blen, "%s", name); in arm_spe_pkt_desc()
513 err = arm_spe_pkt_desc_event(packet, buf, buf_len); in arm_spe_pkt_desc()
516 err = arm_spe_pkt_desc_op_type(packet, buf, buf_len); in arm_spe_pkt_desc()
520 arm_spe_pkt_out_string(&err, &buf, &blen, "%s %lld", name, payload); in arm_spe_pkt_desc()
523 err = arm_spe_pkt_desc_addr(packet, buf, buf_len); in arm_spe_pkt_desc()
526 arm_spe_pkt_out_string(&err, &buf, &blen, "%s 0x%lx el%d", in arm_spe_pkt_desc()
530 err = arm_spe_pkt_desc_counter(packet, buf, buf_len); in arm_spe_pkt_desc()
534 err = -1; in arm_spe_pkt_desc()
539 if (err) { in arm_spe_pkt_desc()
540 err = 0; in arm_spe_pkt_desc()
541 arm_spe_pkt_out_string(&err, &buf_orig, &buf_len, "%s 0x%llx (%d)", in arm_spe_pkt_desc()
545 return err; in arm_spe_pkt_desc()