[PATCH v2 0/6] add measurement support