retrieving non-numeral fields from an event record

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Attempting to use libtraceevent to retrieve fields from events. For example here's the event I'm trying to parse:

 check-events.sh-5983    [002] ..... 261848.250238: cxl_dram_event: cxl_mem.7: Fatal time=0 id=b3cb1
d60-069c-ab4e-b8af-4e9bfb5c9624 handle=1 related_handle=0 hdr_flags='Performance Degraded': phys_add
r=8000 volatile=FALSE desc='Threshold event' type='Invalid Address' trans_type='Internal Media Scrub
' channel=1 rank=0 nibble_mask=0 bank_group=5 bank=2 row=0 column=1024 cor_mask=00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 valid_flags='CHANNEL|BANK
 GROUP|BANK|COLUMN'

Here's me iterating through all the fields and using tep_get_field_raw() trying to retrieve the fields. It appears that
if the field is a string type I'm not able to retrieve the field and the error written back in the seq file is
"CANT FIND FIELD". Am I doing something wrong or using the wrong API to retrieve those type of fields?

failed to get field: time
<CANT FIND FIELD time>
got field: id, len: 16
got field: handle, len: 2
got field: related_handle, len: 2
failed to get field: hdr_flags
<CANT FIND FIELD hdr_flags>
got field: phys_addr, len: 8
failed to get field: volatile
<CANT FIND FIELD volatile>
failed to get field: desc
<CANT FIND FIELD desc>
got field: type, len: 1
failed to get field: trans_type
<CANT FIND FIELD trans_type>
got field: channel, len: 1
got field: rank, len: 1
got field: nibble_mask, len: 4
got field: bank_group, len: 1
got field: bank, len: 1
got field: row, len: 4
got field: column, len: 2
got field: cor_mask, len: 32
failed to get field: valid_flags
<CANT FIND FIELD valid_flags>




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux