Jump To Close Expand all Collapse all Table of contents SystemTap Tapset Reference 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::addr function::asmlinkage function::backtrace function::caller function::caller_addr function::callers function::cmdline_arg function::cmdline_args function::cmdline_str function::cpu function::cpuid function::egid function::env_var function::euid function::execname function::fastcall function::gid function::int_arg function::is_myproc function::is_return function::long_arg function::longlong_arg function::modname function::module_name function::module_size function::ns_egid function::ns_euid function::ns_gid function::ns_pgrp function::ns_pid function::ns_ppid function::ns_sid function::ns_tid function::ns_uid function::pexecname function::pgrp function::pid function::pid2execname function::pid2task function::pn function::pnlabel function::pointer_arg function::pp function::ppfunc function::ppid function::print_backtrace function::print_regs function::print_stack function::print_syms function::print_ubacktrace function::print_ubacktrace_brief function::print_ustack function::print_usyms function::probe_type function::probefunc function::probemod function::pstrace function::register function::registers_valid function::regparm function::remote_id function::remote_uri function::s32_arg function::s64_arg function::sid function::sprint_backtrace function::sprint_stack function::sprint_syms function::sprint_ubacktrace function::sprint_ustack function::sprint_usyms function::stack function::stack_size function::stack_unused function::stack_used function::stp_pid function::symdata function::symfile function::symfileline function::symline function::symname function::target function::task_ancestry function::task_backtrace function::task_cpu function::task_current function::task_cwd_path function::task_egid function::task_euid function::task_exe_file function::task_execname function::task_fd_lookup function::task_gid function::task_max_file_handles function::task_nice function::task_ns_egid function::task_ns_euid function::task_ns_gid function::task_ns_pid function::task_ns_tid function::task_ns_uid function::task_open_file_handles function::task_parent function::task_pid function::task_prio function::task_state function::task_tid function::task_uid function::tid function::u32_arg function::u64_arg function::u_register function::uaddr function::ubacktrace function::ucallers function::uid function::uint_arg function::ulong_arg function::ulonglong_arg function::umodname function::user_mode function::ustack function::usymdata function::usymfile function::usymfileline function::usymline function::usymname 4. Timestamp Functions Expand section "4. Timestamp Functions" Collapse section "4. Timestamp Functions" function::HZ function::cpu_clock_ms function::cpu_clock_ns function::cpu_clock_s function::cpu_clock_us function::delete_stopwatch function::get_cycles function::gettimeofday_ms function::gettimeofday_ns function::gettimeofday_s function::gettimeofday_us function::jiffies function::local_clock_ms function::local_clock_ns function::local_clock_s function::local_clock_us function::read_stopwatch_ms function::read_stopwatch_ns function::read_stopwatch_s function::read_stopwatch_us function::start_stopwatch function::stop_stopwatch 5. Time utility functions Expand section "5. Time utility functions" Collapse section "5. Time utility functions" function::ctime function::tz_ctime function::tz_gmtoff function::tz_name 6. Shell command functions Expand section "6. Shell command functions" Collapse section "6. Shell command functions" function::system 7. Memory Tapset Expand section "7. Memory Tapset" Collapse section "7. Memory Tapset" function::addr_to_node function::bytes_to_string function::mem_page_size function::pages_to_string function::proc_mem_data function::proc_mem_data_pid function::proc_mem_rss function::proc_mem_rss_pid function::proc_mem_shr function::proc_mem_shr_pid function::proc_mem_size function::proc_mem_size_pid function::proc_mem_string function::proc_mem_string_pid function::proc_mem_txt function::proc_mem_txt_pid function::vm_fault_contains probe::vm.brk probe::vm.kfree probe::vm.kmalloc probe::vm.kmalloc_node probe::vm.kmem_cache_alloc probe::vm.kmem_cache_alloc_node probe::vm.kmem_cache_free probe::vm.mmap probe::vm.munmap probe::vm.oom_kill probe::vm.pagefault probe::vm.pagefault.return probe::vm.write_shared probe::vm.write_shared_copy 8. Task Time Tapset Expand section "8. Task Time Tapset" Collapse section "8. Task Time Tapset" function::cputime_to_msecs function::cputime_to_string function::cputime_to_usecs function::msecs_to_string function::nsecs_to_string function::task_start_time function::task_stime function::task_stime_tid function::task_time_string function::task_time_string_tid function::task_utime function::task_utime_tid function::usecs_to_string 9. Scheduler Tapset Expand section "9. Scheduler Tapset" Collapse section "9. Scheduler Tapset" probe::scheduler.balance probe::scheduler.cpu_off probe::scheduler.cpu_on probe::scheduler.ctxswitch probe::scheduler.kthread_stop probe::scheduler.kthread_stop.return probe::scheduler.migrate probe::scheduler.process_exit probe::scheduler.process_fork probe::scheduler.process_free probe::scheduler.process_wait probe::scheduler.signal_send probe::scheduler.tick probe::scheduler.wait_task probe::scheduler.wakeup probe::scheduler.wakeup_new 10. IO Scheduler and block IO Tapset Expand section "10. IO Scheduler and block IO Tapset" Collapse section "10. IO Scheduler and block IO Tapset" probe::ioblock.end probe::ioblock.request probe::ioblock_trace.bounce probe::ioblock_trace.end probe::ioblock_trace.request probe::ioscheduler.elv_add_request probe::ioscheduler.elv_add_request.kp probe::ioscheduler.elv_add_request.tp probe::ioscheduler.elv_completed_request probe::ioscheduler.elv_next_request probe::ioscheduler.elv_next_request.return probe::ioscheduler_trace.elv_abort_request probe::ioscheduler_trace.elv_completed_request probe::ioscheduler_trace.elv_issue_request probe::ioscheduler_trace.elv_requeue_request probe::ioscheduler_trace.plug probe::ioscheduler_trace.unplug_io probe::ioscheduler_trace.unplug_timer 11. SCSI Tapset Expand section "11. SCSI Tapset" Collapse section "11. SCSI Tapset" probe::scsi.iocompleted probe::scsi.iodispatching probe::scsi.iodone probe::scsi.ioentry probe::scsi.ioexecute probe::scsi.set_state 12. TTY Tapset Expand section "12. TTY Tapset" Collapse section "12. TTY Tapset" probe::tty.init probe::tty.ioctl probe::tty.open probe::tty.poll probe::tty.read probe::tty.receive probe::tty.register probe::tty.release probe::tty.resize probe::tty.unregister probe::tty.write 13. Interrupt Request (IRQ) Tapset Expand section "13. Interrupt Request (IRQ) Tapset" Collapse section "13. Interrupt Request (IRQ) Tapset" probe::irq_handler.entry probe::irq_handler.exit probe::softirq.entry probe::softirq.exit probe::workqueue.create probe::workqueue.destroy probe::workqueue.execute probe::workqueue.insert 14. Networking Tapset Expand section "14. Networking Tapset" Collapse section "14. Networking Tapset" function::format_ipaddr function::htonl function::htonll function::htons function::ip_ntop function::ntohl function::ntohll function::ntohs probe::netdev.change_mac probe::netdev.change_mtu probe::netdev.change_rx_flag probe::netdev.close probe::netdev.get_stats probe::netdev.hard_transmit probe::netdev.ioctl probe::netdev.open probe::netdev.receive probe::netdev.register probe::netdev.rx probe::netdev.set_promiscuity probe::netdev.transmit probe::netdev.unregister probe::netfilter.arp.forward probe::netfilter.arp.in probe::netfilter.arp.out probe::netfilter.bridge.forward probe::netfilter.bridge.local_in probe::netfilter.bridge.local_out probe::netfilter.bridge.post_routing probe::netfilter.bridge.pre_routing probe::netfilter.ip.forward probe::netfilter.ip.local_in probe::netfilter.ip.local_out probe::netfilter.ip.post_routing probe::netfilter.ip.pre_routing probe::sunrpc.clnt.bind_new_program probe::sunrpc.clnt.call_async probe::sunrpc.clnt.call_sync probe::sunrpc.clnt.clone_client probe::sunrpc.clnt.create_client probe::sunrpc.clnt.restart_call probe::sunrpc.clnt.shutdown_client probe::sunrpc.sched.delay probe::sunrpc.sched.execute probe::sunrpc.sched.new_task probe::sunrpc.sched.release_task probe::sunrpc.svc.create probe::sunrpc.svc.destroy probe::sunrpc.svc.drop probe::sunrpc.svc.process probe::sunrpc.svc.recv probe::sunrpc.svc.register probe::sunrpc.svc.send probe::tcp.disconnect probe::tcp.disconnect.return probe::tcp.receive probe::tcp.recvmsg probe::tcp.recvmsg.return probe::tcp.sendmsg probe::tcp.sendmsg.return probe::tcp.setsockopt probe::tcp.setsockopt.return probe::udp.disconnect probe::udp.disconnect.return probe::udp.recvmsg probe::udp.recvmsg.return probe::udp.sendmsg probe::udp.sendmsg.return 15. Socket Tapset Expand section "15. Socket Tapset" Collapse section "15. Socket Tapset" function::inet_get_ip_source function::inet_get_local_port function::sock_fam_num2str function::sock_fam_str2num function::sock_prot_num2str function::sock_prot_str2num function::sock_state_num2str function::sock_state_str2num probe::socket.aio_read probe::socket.aio_read.return probe::socket.aio_write probe::socket.aio_write.return probe::socket.close probe::socket.close.return probe::socket.create probe::socket.create.return probe::socket.read_iter probe::socket.read_iter.return probe::socket.readv probe::socket.readv.return probe::socket.receive probe::socket.recvmsg probe::socket.recvmsg.return probe::socket.send probe::socket.sendmsg probe::socket.sendmsg.return probe::socket.write_iter probe::socket.write_iter.return probe::socket.writev probe::socket.writev.return 16. SNMP Information Tapset Expand section "16. SNMP Information Tapset" Collapse section "16. SNMP Information Tapset" function::ipmib_filter_key function::ipmib_get_proto function::ipmib_local_addr function::ipmib_remote_addr function::ipmib_tcp_local_port function::ipmib_tcp_remote_port function::linuxmib_filter_key function::tcpmib_filter_key function::tcpmib_get_state function::tcpmib_local_addr function::tcpmib_local_port function::tcpmib_remote_addr function::tcpmib_remote_port probe::ipmib.ForwDatagrams probe::ipmib.FragFails probe::ipmib.FragOKs probe::ipmib.InAddrErrors probe::ipmib.InDiscards probe::ipmib.InNoRoutes probe::ipmib.InReceives probe::ipmib.InUnknownProtos probe::ipmib.OutRequests probe::ipmib.ReasmReqds probe::ipmib.ReasmTimeout probe::linuxmib.DelayedACKs probe::linuxmib.ListenDrops probe::linuxmib.ListenOverflows probe::linuxmib.TCPMemoryPressures probe::tcpmib.ActiveOpens probe::tcpmib.AttemptFails probe::tcpmib.CurrEstab probe::tcpmib.EstabResets probe::tcpmib.InSegs probe::tcpmib.OutRsts probe::tcpmib.OutSegs probe::tcpmib.PassiveOpens probe::tcpmib.RetransSegs 17. Kernel Process Tapset Expand section "17. Kernel Process Tapset" Collapse section "17. Kernel Process Tapset" function::get_loadavg_index function::sprint_loadavg function::target_set_pid function::target_set_report probe::kprocess.create probe::kprocess.exec probe::kprocess.exec_complete probe::kprocess.exit probe::kprocess.release probe::kprocess.start 18. Signal Tapset Expand section "18. Signal Tapset" Collapse section "18. Signal Tapset" function::get_sa_flags function::get_sa_handler function::is_sig_blocked function::sa_flags_str function::sa_handler_str function::signal_str function::sigset_mask_str probe::signal.check_ignored probe::signal.check_ignored.return probe::signal.checkperm probe::signal.checkperm.return probe::signal.do_action probe::signal.do_action.return probe::signal.flush probe::signal.force_segv probe::signal.force_segv.return probe::signal.handle probe::signal.handle.return probe::signal.pending probe::signal.pending.return probe::signal.procmask probe::signal.procmask.return probe::signal.send probe::signal.send.return probe::signal.send_sig_queue probe::signal.send_sig_queue.return probe::signal.sys_tgkill probe::signal.sys_tgkill.return probe::signal.sys_tkill probe::signal.syskill probe::signal.syskill.return probe::signal.systkill.return probe::signal.wakeup 19. Errno Tapset Expand section "19. Errno Tapset" Collapse section "19. Errno Tapset" function::errno_str function::return_str function::returnstr function::returnval 20. RLIMIT Tapset Expand section "20. RLIMIT Tapset" Collapse section "20. RLIMIT Tapset" function::rlimit_from_str 21. Device Tapset Expand section "21. Device Tapset" Collapse section "21. Device Tapset" function::MAJOR function::MINOR function::MKDEV function::usrdev2kerndev 22. Directory-entry (dentry) Tapset Expand section "22. Directory-entry (dentry) Tapset" Collapse section "22. Directory-entry (dentry) Tapset" function::d_name function::d_path function::fullpath_struct_file function::fullpath_struct_nameidata function::fullpath_struct_path function::inode_name function::inode_path function::real_mount function::reverse_path_walk function::task_dentry_path 23. Logging Tapset Expand section "23. Logging Tapset" Collapse section "23. Logging Tapset" function::assert function::error function::exit function::ftrace function::log function::printk function::warn 24. Queue Statistics Tapset Expand section "24. Queue Statistics Tapset" Collapse section "24. Queue Statistics Tapset" function::qs_done function::qs_run function::qs_wait function::qsq_blocked function::qsq_print function::qsq_service_time function::qsq_start function::qsq_throughput function::qsq_utilization function::qsq_wait_queue_length function::qsq_wait_time 25. Random functions Tapset Expand section "25. Random functions Tapset" Collapse section "25. Random functions Tapset" function::randint 26. String and data retrieving functions Tapset Expand section "26. String and data retrieving functions Tapset" Collapse section "26. String and data retrieving functions Tapset" function::atomic_long_read function::atomic_read function::kernel_char function::kernel_int function::kernel_long function::kernel_pointer function::kernel_short function::kernel_string function::kernel_string2 function::kernel_string2_utf16 function::kernel_string2_utf32 function::kernel_string_n function::kernel_string_quoted function::kernel_string_quoted_utf16 function::kernel_string_quoted_utf32 function::kernel_string_utf16 function::kernel_string_utf32 function::user_char function::user_char_warn function::user_int function::user_int16 function::user_int32 function::user_int64 function::user_int8 function::user_int_warn function::user_long function::user_long_warn function::user_short function::user_short_warn function::user_string function::user_string2 function::user_string2_n_warn function::user_string2_utf16 function::user_string2_utf32 function::user_string2_warn function::user_string_n function::user_string_n2 function::user_string_n2_quoted function::user_string_n_quoted function::user_string_n_warn function::user_string_quoted function::user_string_quoted_utf16 function::user_string_quoted_utf32 function::user_string_utf16 function::user_string_utf32 function::user_string_warn function::user_uint16 function::user_uint32 function::user_uint64 function::user_uint8 function::user_ulong function::user_ulong_warn function::user_ushort function::user_ushort_warn 27. String and data writing functions Tapset Expand section "27. String and data writing functions Tapset" Collapse section "27. String and data writing functions Tapset" function::set_kernel_char function::set_kernel_int function::set_kernel_long function::set_kernel_pointer function::set_kernel_short function::set_kernel_string function::set_kernel_string_n 28. Guru tapsets Expand section "28. Guru tapsets" Collapse section "28. Guru tapsets" function::mdelay function::panic function::raise function::udelay 29. A collection of standard string functions Expand section "29. A collection of standard string functions" Collapse section "29. A collection of standard string functions" function::isdigit function::isinstr function::str_replace function::string_quoted function::stringat function::strlen function::strtol function::substr function::text_str function::text_strn function::tokenize 30. Utility functions for using ansi control chars in logs Expand section "30. Utility functions for using ansi control chars in logs" Collapse section "30. Utility functions for using ansi control chars in logs" function::ansi_clear_screen function::ansi_cursor_hide function::ansi_cursor_move function::ansi_cursor_restore function::ansi_cursor_save function::ansi_cursor_show function::ansi_new_line function::ansi_reset_color function::ansi_set_color function::ansi_set_color2 function::ansi_set_color3 function::indent function::indent_depth function::thread_indent function::thread_indent_depth 31. SystemTap Translator Tapset Expand section "31. SystemTap Translator Tapset" Collapse section "31. SystemTap Translator Tapset" probe::stap.cache_add_mod probe::stap.cache_add_nss probe::stap.cache_add_src probe::stap.cache_clean probe::stap.cache_get probe::stap.pass0 probe::stap.pass0.end probe::stap.pass1.end probe::stap.pass1a probe::stap.pass1b probe::stap.pass2 probe::stap.pass2.end probe::stap.pass3 probe::stap.pass3.end probe::stap.pass4 probe::stap.pass4.end probe::stap.pass5 probe::stap.pass5.end probe::stap.pass6 probe::stap.pass6.end probe::stap.system probe::stap.system.return probe::stap.system.spawn probe::stapio.receive_control_message probe::staprun.insert_module probe::staprun.remove_module probe::staprun.send_control_message 32. Network File Storage Tapsets Expand section "32. Network File Storage Tapsets" Collapse section "32. Network File Storage Tapsets" function::nfsderror probe::nfs.aop.readpage probe::nfs.aop.readpages probe::nfs.aop.release_page probe::nfs.aop.set_page_dirty probe::nfs.aop.write_begin probe::nfs.aop.write_end probe::nfs.aop.writepage probe::nfs.aop.writepages probe::nfs.fop.aio_read probe::nfs.fop.aio_write probe::nfs.fop.check_flags probe::nfs.fop.flush probe::nfs.fop.fsync probe::nfs.fop.llseek probe::nfs.fop.lock probe::nfs.fop.mmap probe::nfs.fop.open probe::nfs.fop.read probe::nfs.fop.read_iter probe::nfs.fop.release probe::nfs.fop.sendfile probe::nfs.fop.write probe::nfs.fop.write_iter probe::nfs.proc.commit probe::nfs.proc.commit_done probe::nfs.proc.commit_setup probe::nfs.proc.create probe::nfs.proc.handle_exception probe::nfs.proc.lookup probe::nfs.proc.open probe::nfs.proc.read probe::nfs.proc.read_done probe::nfs.proc.read_setup probe::nfs.proc.release probe::nfs.proc.remove probe::nfs.proc.rename probe::nfs.proc.rename_done probe::nfs.proc.rename_setup probe::nfs.proc.write probe::nfs.proc.write_done probe::nfs.proc.write_setup probe::nfsd.close probe::nfsd.commit probe::nfsd.create probe::nfsd.createv3 probe::nfsd.dispatch probe::nfsd.lookup probe::nfsd.open probe::nfsd.proc.commit probe::nfsd.proc.create probe::nfsd.proc.lookup probe::nfsd.proc.read probe::nfsd.proc.remove probe::nfsd.proc.rename probe::nfsd.proc.write probe::nfsd.read probe::nfsd.rename probe::nfsd.unlink probe::nfsd.write 33. Speculation Expand section "33. Speculation" Collapse section "33. Speculation" function::commit function::discard function::speculate function::speculation 34. JSON Tapset Expand section "34. JSON Tapset" Collapse section "34. JSON Tapset" function::json_add_array function::json_add_array_numeric_metric function::json_add_array_string_metric function::json_add_numeric_metric function::json_add_string_metric function::json_set_prefix macro::json_output_array_numeric_value macro::json_output_array_string_value macro::json_output_data_end macro::json_output_data_start macro::json_output_numeric_value macro::json_output_string_value probe::json_data 35. Output file switching Tapset Expand section "35. Output file switching Tapset" Collapse section "35. Output file switching Tapset" function::switch_file A. Revision History 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 function::ntohl Namefunction::ntohl — Convert 32-bit long from network to host order Synopsis ntohl:long(x:long) Argumentsx Value to convert Previous Next