# lsfd -Q '(COMMAND =~ ".\*qemu.*") and (FD >= 0)'
....
-Hide files associated to kernel threads: ::
-....
-# lsfd -Q '!KTHREAD'
-....
-
List timerfd files expired within 0.5 seconds: ::
....
# lsfd -Q '(TIMERFD.remaining < 0.5) and (TIMERFD.remaining > 0.0)'
proc->kthread = !!(flags & PF_KTHREAD);
free(pat);
}
+ if (proc->kthread && !ctl->threads) {
+ free_proc(proc);
+ goto out;
+ }
collect_execve_file(pc, proc, ctl->sockets_only);
else if (ctl->show_xmode)
walk_threads(ctl, pc, pid, proc, parse_proc_syscall);
+ out:
/* Let's be careful with number of open files */
ul_path_close_dirfd(pc);
}
ts_cd "$TS_OUTDIR"
{
- "$TS_CMD_LSFD" -o COMMAND,PID,USER,MODE,TYPE,NAME,KTHREAD \
+ "$TS_CMD_LSFD" --threads -o COMMAND,PID,USER,MODE,TYPE,NAME,KTHREAD \
-Q '(PID < 3) and ((ASSOC == "cwd") or (ASSOC == "rtd"))'
echo $?
} > $TS_OUTPUT 2>&1