makefile: forgotten -lrt for using clock_gettime

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
dla: fix crash on hash_free

of course we have to use list_for_each_entry_safe,
because on every iteration element is freed.

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
dla: fix suspicious entry detection on each scan

Firstly we move the task to stuck list, thus task always
belongs to some list, so next check on suspicious is always
true.

If task is always suspicious that means it was successfully
analysed on task scan and this task has correct syscall
and we can do stack unwinding.

But if task was marked as need_relax it won't be put to
any stuck list, but still it can be found in the whole
stuck chain, hence ptrace can fail (syscall was never
correctly set).

To avoid this we have to be sure, that if not suspicious task
(which does not belong to any stuck list) is found, chain
is broken, we break out of the loop and the whole scan must be
repeated.

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
dla: implement params parsing and deadlock filter

dla is intentended to run as daemon and outputs binary result
to some tool, which knows how to handle this binary output.

In this patch I implemented simple stream protocol and filter-deadlock
tool, which reads from stdin this binary stream and outputs it
in human readable format.

Signed-off-by: Roman Pen <r.peniaev@gmail.com>