Lines Matching refs:metadata
64 u64 **metadata; member
132 u64 *metadata; in cs_etm__get_magic() local
138 metadata = inode->priv; in cs_etm__get_magic()
139 *magic = metadata[CS_ETM_MAGIC]; in cs_etm__get_magic()
146 u64 *metadata; in cs_etm__get_cpu() local
152 metadata = inode->priv; in cs_etm__get_cpu()
153 *cpu = (int)metadata[CS_ETM_CPU]; in cs_etm__get_cpu()
172 u64 *metadata, val; in cs_etm__get_pid_fmt() local
178 metadata = inode->priv; in cs_etm__get_pid_fmt()
180 if (metadata[CS_ETM_MAGIC] == __perf_cs_etmv3_magic) { in cs_etm__get_pid_fmt()
181 val = metadata[CS_ETM_ETMCR]; in cs_etm__get_pid_fmt()
186 val = metadata[CS_ETMV4_TRCCONFIGR]; in cs_etm__get_pid_fmt()
442 u64 **metadata = etm->metadata; in cs_etm__set_trace_param_etmv3() local
445 t_params[idx].etmv3.reg_ctrl = metadata[idx][CS_ETM_ETMCR]; in cs_etm__set_trace_param_etmv3()
446 t_params[idx].etmv3.reg_trc_id = metadata[idx][CS_ETM_ETMTRACEIDR]; in cs_etm__set_trace_param_etmv3()
452 u64 **metadata = etm->metadata; in cs_etm__set_trace_param_etmv4() local
455 t_params[idx].etmv4.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_etmv4()
456 t_params[idx].etmv4.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_etmv4()
457 t_params[idx].etmv4.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_etmv4()
458 t_params[idx].etmv4.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_etmv4()
459 t_params[idx].etmv4.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_etmv4()
460 t_params[idx].etmv4.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_etmv4()
466 u64 **metadata = etm->metadata; in cs_etm__set_trace_param_ete() local
469 t_params[idx].ete.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_ete()
470 t_params[idx].ete.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_ete()
471 t_params[idx].ete.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_ete()
472 t_params[idx].ete.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_ete()
473 t_params[idx].ete.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_ete()
474 t_params[idx].ete.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_ete()
475 t_params[idx].ete.reg_devarch = metadata[idx][CS_ETE_TRCDEVARCH]; in cs_etm__set_trace_param_ete()
487 architecture = etm->metadata[i][CS_ETM_MAGIC]; in cs_etm__init_trace_params()
491 etmidr = etm->metadata[i][CS_ETM_ETMIDR]; in cs_etm__init_trace_params()
659 zfree(&aux->metadata[i]); in cs_etm__free()
662 zfree(&aux->metadata); in cs_etm__free()
2663 u64 *metadata = NULL; in cs_etm__create_meta_blk() local
2668 metadata = zalloc(sizeof(*metadata) * out_blk_size); in cs_etm__create_meta_blk()
2669 if (!metadata) in cs_etm__create_meta_blk()
2679 metadata[CS_ETM_MAGIC] = buff_in[i + CS_ETM_MAGIC]; in cs_etm__create_meta_blk()
2680 metadata[CS_ETM_CPU] = buff_in[i + CS_ETM_CPU]; in cs_etm__create_meta_blk()
2681 metadata[CS_ETM_NR_TRC_PARAMS] = nr_in_params; in cs_etm__create_meta_blk()
2684 metadata[k + 1] = buff_in[i + k]; in cs_etm__create_meta_blk()
2699 metadata[k] = buff_in[i + k]; in cs_etm__create_meta_blk()
2702 metadata[CS_ETM_NR_TRC_PARAMS] = nr_out_params - nr_cmn_params; in cs_etm__create_meta_blk()
2708 return metadata; in cs_etm__create_meta_blk()
2901 u64 **metadata = NULL; in cs_etm__process_auxtrace_info() local
2949 metadata = zalloc(sizeof(*metadata) * num_cpu); in cs_etm__process_auxtrace_info()
2950 if (!metadata) { in cs_etm__process_auxtrace_info()
2963 metadata[j] = in cs_etm__process_auxtrace_info()
2972 metadata[j] = in cs_etm__process_auxtrace_info()
2980 metadata[j] = cs_etm__create_meta_blk(ptr, &i, CS_ETE_PRIV_MAX, -1); in cs_etm__process_auxtrace_info()
2991 if (!metadata[j]) { in cs_etm__process_auxtrace_info()
2997 inode = intlist__findnew(traceid_list, metadata[j][trcidr_idx]); in cs_etm__process_auxtrace_info()
3014 inode->priv = metadata[j]; in cs_etm__process_auxtrace_info()
3054 etm->metadata = metadata; in cs_etm__process_auxtrace_info()
3120 zfree(&metadata[j]); in cs_etm__process_auxtrace_info()
3121 zfree(&metadata); in cs_etm__process_auxtrace_info()