feat(kernel): add weight to kernel definitions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(kernel): add weight to kernel definitions