The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

truss (1)
  • truss (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
  • >> truss (1) ( FreeBSD man: Команды и прикладные программы пользовательского уровня )
  • truss (1) ( Русские man: Команды и прикладные программы пользовательского уровня )

  • BSD mandoc
     

    NAME

    
    
    truss
    
     - trace system calls
    
     
    

    SYNOPSIS

    [-faedDS ] [-o file ] [-s strsize ] -p pid
    [-faedDS ] [-o file ] [-s strsize ] command [args ]  

    DESCRIPTION

    The utility traces the system calls called by the specified process or program. Output is to the specified output file, or standard error by default. It does this by stopping and restarting the process being monitored via ptrace(2).

    The options are as follows:

    -f
    Trace descendants of the original traced process created by fork(2), vfork(2), etc.
    -a
    Show the argument strings that are passed in each execve(2) system call.
    -e
    Show the environment strings that are passed in each execve(2) system call.
    -d
    Include timestamps in the output showing the time elapsed since the trace was started.
    -D
    Include timestamps in the output showing the time elapsed since the last recorded event.
    -S
    Do not display information about signals received by the process. (Normally, displays signal as well as system call events.)
    -o file
    Print the output to the specified file instead of standard error.
    -s strsize
    Display strings using at most strsize characters. If the buffer is larger, ``... '' will be displayed at the end of the string. The default strsize is 32.
    -p pid
    Follow the process specified by pid instead of a new command.
    command [args ]
    Execute command and trace the system calls of it. (The -p and command options are mutually exclusive.)

     

    EXAMPLES

    # Follow the system calls used in echoing "hello"
    $ truss /bin/echo hello
    # Do the same, but put the output into a file
    $ truss -o /tmp/truss.out /bin/echo hello
    # Follow an already-running process
    $ truss -p 1
     

    SEE ALSO

    kdump(1), ktrace(1), ptrace(2)  

    HISTORY

    The command was written by An Sean Eric Fagan for Fx . It was modeled after similar commands available for System V Release 4 and SunOS.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    EXAMPLES
    SEE ALSO
    HISTORY


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру