Meter patch for kernel and usermode