xop: error: Bad Opcode
executing a custom opcode from testnap throws xop: error: Bad Opcode
below is snapshot of response
nap(23808)> xop 100001 0 1
xop: opcode 100001, flags 0
XOP "100001" failed: err 36:PIN_ERR_BAD_OPCODE, field 0/0:0,
loc 3:PIN_ERRLOC_CM, errclass 1:PIN_ERRCLASS_SYSTEM_DETERMINATE, rec_id 0, resvd 0
# number of field entries allocated 20, used 2
0 PIN_FLD_POID POID [0] 0.0.0.1 /error_poid -1 0
0 PIN_FLD_ERR_BUF ERR [0]
<location=PIN_ERRLOC_CM:3 class="PIN_ERRCLASS_SYSTEM_DETERMINATE":1 errno=PIN_ERR_BAD_OPCODE:36>
<field num=0:0,0 recid=0 reserved=0 reserved2=0 time(sec:usec)=0:0>
<facility=0 msg_id=0 version=0>
Steps to create custom opcode followed
- Step.1-Create header file in include directory using BRM_HOME/include using vi editor.