class library: HIDFunc: update the trace function