[PATCH v3 0/5] add measurement support