Jump To Close Expand all Collapse all Table of contents SystemTap Tapset Reference Preface 1. Introduction Expand section "1. Introduction" Collapse section "1. Introduction" 1.1. Documentation Goals 2. Tapset Development Guidelines Expand section "2. Tapset Development Guidelines" Collapse section "2. Tapset Development Guidelines" 2.1. Writing Good Tapsets 2.2. Elements of a Tapset Expand section "2.2. Elements of a Tapset" Collapse section "2.2. Elements of a Tapset" 2.2.1. Tapset Files 2.2.2. Namespace 2.2.3. Comments and Documentation 3. Context Functions Expand section "3. Context Functions" Collapse section "3. Context Functions" function::print_regs function::execname function::pid function::tid function::ppid function::pgrp function::sid function::pexecname function::gid function::egid function::uid function::euid function::is_myproc function::cpu function::pp function::registers_valid function::user_mode function::is_return function::target function::module_name function::stp_pid function::stack_size function::stack_used function::stack_unused function::uaddr function::cmdline_args function::cmdline_arg function::cmdline_str function::env_var function::print_stack function::sprint_stack function::probefunc function::probemod function::modname function::symname function::symdata function::usymname function::usymdata function::print_ustack function::sprint_ustack function::print_backtrace function::sprint_backtrace function::backtrace function::task_backtrace function::caller function::caller_addr function::print_ubacktrace function::sprint_ubacktrace function::print_ubacktrace_brief function::ubacktrace function::task_current function::task_parent function::task_state function::task_execname function::task_pid function::pid2task function::pid2execname function::task_tid function::task_gid function::task_egid function::task_uid function::task_euid function::task_prio function::task_nice function::task_cpu function::task_open_file_handles function::task_max_file_handles function::pn 4. Timestamp Functions Expand section "4. Timestamp Functions" Collapse section "4. Timestamp Functions" function::get_cycles function::gettimeofday_ns function::gettimeofday_us function::gettimeofday_ms function::gettimeofday_s 5. Time string utility function Expand section "5. Time string utility function" Collapse section "5. Time string utility function" function::ctime 6. Memory Tapset Expand section "6. Memory Tapset" Collapse section "6. Memory Tapset" function::vm_fault_contains probe::vm.pagefault probe::vm.pagefault.return function::addr_to_node probe::vm.write_shared probe::vm.write_shared_copy probe::vm.mmap probe::vm.munmap probe::vm.brk probe::vm.oom_kill probe::vm.kmalloc probe::vm.kmem_cache_alloc probe::vm.kmalloc_node probe::vm.kmem_cache_alloc_node probe::vm.kfree probe::vm.kmem_cache_free function::proc_mem_size function::proc_mem_size_pid function::proc_mem_rss function::proc_mem_rss_pid function::proc_mem_shr function::proc_mem_shr_pid function::proc_mem_txt function::proc_mem_txt_pid function::proc_mem_data function::proc_mem_data_pid function::mem_page_size function::bytes_to_string function::pages_to_string function::proc_mem_string function::proc_mem_string_pid 7. Task Time Tapset Expand section "7. Task Time Tapset" Collapse section "7. Task Time Tapset" function::task_utime function::task_utime_tid function::task_stime function::task_stime_tid function::cputime_to_msecs function::msecs_to_string function::cputime_to_string function::task_time_string function::task_time_string_tid 8. IO Scheduler and block IO Tapset Expand section "8. IO Scheduler and block IO Tapset" Collapse section "8. IO Scheduler and block IO Tapset" probe::ioscheduler.elv_next_request probe::ioscheduler.elv_next_request.return probe::ioscheduler.elv_completed_request probe::ioscheduler.elv_add_request.kp probe::ioscheduler.elv_add_request.tp probe::ioscheduler.elv_add_request probe::ioscheduler_trace.elv_completed_request probe::ioscheduler_trace.elv_issue_request probe::ioscheduler_trace.elv_requeue_request probe::ioscheduler_trace.elv_abort_request probe::ioscheduler_trace.plug probe::ioscheduler_trace.unplug_io probe::ioscheduler_trace.unplug_timer probe::ioblock.request probe::ioblock.end probe::ioblock_trace.bounce probe::ioblock_trace.request probe::ioblock_trace.end 9. SCSI Tapset Expand section "9. SCSI Tapset" Collapse section "9. SCSI Tapset" probe::scsi.ioentry probe::scsi.iodispatching probe::scsi.iodone probe::scsi.iocompleted probe::scsi.ioexecute probe::scsi.set_state 10. TTY Tapset Expand section "10. TTY Tapset" Collapse section "10. TTY Tapset" probe::tty.open probe::tty.release probe::tty.resize probe::tty.ioctl probe::tty.init probe::tty.register probe::tty.unregister probe::tty.poll probe::tty.receive probe::tty.write probe::tty.read 11. Networking Tapset Expand section "11. Networking Tapset" Collapse section "11. Networking Tapset" probe::netdev.receive probe::netdev.transmit probe::netdev.change_mtu probe::netdev.open probe::netdev.close probe::netdev.hard_transmit probe::netdev.rx probe::netdev.change_rx_flag probe::netdev.set_promiscuity probe::netdev.ioctl probe::netdev.register probe::netdev.unregister probe::netdev.get_stats probe::netdev.change_mac probe::tcp.sendmsg probe::tcp.sendmsg.return probe::tcp.recvmsg probe::tcp.recvmsg.return probe::tcp.disconnect probe::tcp.disconnect.return probe::tcp.setsockopt probe::tcp.setsockopt.return probe::tcp.receive probe::udp.sendmsg probe::udp.sendmsg.return probe::udp.recvmsg probe::udp.recvmsg.return probe::udp.disconnect probe::udp.disconnect.return function::ip_ntop 12. Socket Tapset Expand section "12. Socket Tapset" Collapse section "12. Socket Tapset" probe::socket.send probe::socket.receive probe::socket.sendmsg probe::socket.sendmsg.return probe::socket.recvmsg probe::socket.recvmsg.return probe::socket.aio_write probe::socket.aio_write.return probe::socket.aio_read probe::socket.aio_read.return probe::socket.writev probe::socket.writev.return probe::socket.readv probe::socket.readv.return probe::socket.create probe::socket.create.return probe::socket.close probe::socket.close.return function::sock_prot_num2str function::sock_prot_str2num function::sock_fam_num2str function::sock_fam_str2num function::sock_state_num2str function::sock_state_str2num 13. Kernel Process Tapset Expand section "13. Kernel Process Tapset" Collapse section "13. Kernel Process Tapset" probe::kprocess.create probe::kprocess.start probe::kprocess.exec probe::kprocess.exec_complete probe::kprocess.exit probe::kprocess.release 14. Signal Tapset Expand section "14. Signal Tapset" Collapse section "14. Signal Tapset" probe::signal.send probe::signal.send.return probe::signal.checkperm probe::signal.checkperm.return probe::signal.wakeup probe::signal.check_ignored probe::signal.check_ignored.return probe::signal.force_segv probe::signal.force_segv.return probe::signal.syskill probe::signal.syskill.return probe::signal.sys_tkill probe::signal.systkill.return probe::signal.sys_tgkill probe::signal.sys_tgkill.return probe::signal.send_sig_queue probe::signal.send_sig_queue.return probe::signal.pending probe::signal.pending.return probe::signal.handle probe::signal.handle.return probe::signal.do_action probe::signal.do_action.return probe::signal.procmask probe::signal.procmask.return probe::signal.flush 15. Directory-entry (dentry) Tapset Expand section "15. Directory-entry (dentry) Tapset" Collapse section "15. Directory-entry (dentry) Tapset" function::d_name function::reverse_path_walk function::task_dentry_path function::d_path 16. Logging Tapset Expand section "16. Logging Tapset" Collapse section "16. Logging Tapset" function::log function::warn function::exit function::error function::ftrace 17. Random functions Tapset Expand section "17. Random functions Tapset" Collapse section "17. Random functions Tapset" function::randint 18. String and data retrieving functions Tapset Expand section "18. String and data retrieving functions Tapset" Collapse section "18. String and data retrieving functions Tapset" function::kernel_string function::kernel_string2 function::kernel_string_n function::kernel_long function::kernel_int function::kernel_short function::kernel_char function::kernel_pointer function::user_string function::user_string2 function::user_string_warn function::user_string_quoted function::user_string_n function::user_string_n2 function::user_string_n_warn function::user_string_n_quoted function::user_short function::user_short_warn function::user_int function::user_int_warn function::user_long function::user_long_warn function::user_char function::user_char_warn 19. A collection of standard string functions Expand section "19. A collection of standard string functions" Collapse section "19. A collection of standard string functions" function::strlen function::substr function::stringat function::isinstr function::text_str function::text_strn function::tokenize function::str_replace function::strtol function::isdigit 20. Utility functions for using ansi control chars in logs Expand section "20. Utility functions for using ansi control chars in logs" Collapse section "20. Utility functions for using ansi control chars in logs" function::ansi_clear_screen function::ansi_set_color function::ansi_set_color2 function::ansi_set_color3 function::ansi_reset_color function::ansi_new_line function::ansi_cursor_move function::ansi_cursor_hide function::ansi_cursor_save function::ansi_cursor_restore function::ansi_cursor_show Legal Notice Settings Close Language: 日本語 English Language: 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: 日本語 English Language: 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Red Hat Training A Red Hat training course is available for Red Hat Enterprise Linux Chapter 15. Directory-entry (dentry) Tapset This family of functions is used to map kernel VFS directory entry pointers to file or full path names. Previous Next