Re: Finding whether a process blocked while executing a syscall

From: bert hubert (ahu_at_ds9a.nl)
Date: 12/30/04

  • Next message: Angelo G. Devine: "Finished"
    Date:	Thu, 30 Dec 2004 23:13:56 +0100
    To: selvakumar nagendran <kernelselva@yahoo.com>
    
    

    On Wed, Dec 29, 2004 at 08:52:36PM -0800, selvakumar nagendran wrote:

    > A process can be blocked while executing a syscall
    > in the light of some resources needed. Now, I want to
    > find out whether a process has been blocked while
    > executing a particular syscall or it has finished it
    > successfully? If it was blocked I want to perform some
    > operation on it. Can anyone help me regarding this?

    This question is fraught with difficulty. For one thing, many many system
    calls will block for a short time, which you would probably not describe as
    'blocked', even though this was true for a few milliseconds.

    You did not entirely specify why you want to do this, there may be better
    solutions to your problem.

    bert

    -- 
    http://www.PowerDNS.com      Open source, database driven DNS Software 
    http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Angelo G. Devine: "Finished"

    Relevant Pages

    • RE: WINE + NX (No eXecute) support for x86, 2.6.7-rc2-bk2
      ... a syscall to prevent a return-address-twiddle invoking the call directly. ... feature, file plus action means executable stack, no action means system default (old ... can, new cannot), hacks would require a variable and executing arbitrary code to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Finding whether a process blocked while executing a syscall
      ... A process can be blocked while executing a syscall ... Mail has the best spam protection around ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Resource unavailabilty on a syscall
      ... I accept a process may block on a syscall for many ... But I want to determine it for resource ... >> executing a particular syscall or it has finished ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH for testing] cow behaviour for hard links
      ... But introducing copyfile() ... linksyscall is hijacked for exactly that purpose and my ugly flag ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [-mm patch] seccomp: dont say it was more or less mandatory
      ... recommandation for now;) ... Or I'll make it a syscall, do the embedded folks have a compilation ... this is a linux kernel API that some app can ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)