Identifying whether a user-process or kernel-thread execution takes place by looking at CPU registers