Re: [PATCH] tracehook: add some self tests

From: Roland McGrath
Date: Mon Feb 15 2010 - 15:33:31 EST


> is there some task available while the kernel is initializing ? i.e.
> the test is compiled in ?
>
> if current is valid, i'll just [ab]use that ...

I don't think you can win with any kind of abuse on ia64. (For other
machines that only test the compat state of the task, any task will
do--though perhaps only test half the code.) AFAICT, on ia64 only a real
empirical test can work at all. That is, you must really be referring to a
task and its task_pt_regs() when that task really has entered the kernel
for a syscall.


Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/