Lines Matching refs:jd
201 def __init__(self, jd: dict):
296 if 'EventCode' in jd:
297 eventcode = int(jd['EventCode'].split(',', 1)[0], 0)
298 if 'ExtSel' in jd:
299 eventcode |= int(jd['ExtSel']) << 8
300 configcode = int(jd['ConfigCode'], 0) if 'ConfigCode' in jd else None
301 self.name = jd['EventName'].lower() if 'EventName' in jd else None
303 self.compat = jd.get('Compat')
304 self.desc = fixdesc(jd.get('BriefDescription'))
305 self.long_desc = fixdesc(jd.get('PublicDescription'))
306 precise = jd.get('PEBS')
307 msr = lookup_msr(jd.get('MSRIndex'))
308 msrval = jd.get('MSRValue')
310 if 'Data_LA' in jd:
312 if 'Errata' in jd:
314 if 'Errata' in jd:
315 extra_desc += ' Spec update: ' + jd['Errata']
316 self.pmu = unit_to_pmu(jd.get('Unit'))
317 filter = jd.get('Filter')
318 self.unit = jd.get('ScaleUnit')
319 self.perpkg = jd.get('PerPkg')
320 self.aggr_mode = convert_aggr_mode(jd.get('AggregationMode'))
321 self.deprecated = jd.get('Deprecated')
322 self.metric_name = jd.get('MetricName')
323 self.metric_group = jd.get('MetricGroup')
324 self.metricgroup_no_group = jd.get('MetricgroupNoGroup')
325 self.default_metricgroup_name = jd.get('DefaultMetricgroupName')
326 self.event_grouping = convert_metric_constraint(jd.get('MetricConstraint'))
328 if 'MetricExpr' in jd:
329 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
332 self.metric_threshold = jd.get('MetricThreshold')
334 arch_std = jd.get('ArchStdEvent')
350 if key in jd and jd[key] != '0':
351 event += ',' + value + jd[key]