Ahaggar: add the xinstrument utils functions

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Ahaggar: remove whitespace

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>