1 2008-03-21 Eugene Teo <eugeneteo@kernel.sg>
4 * conversions.stp (user_string_n, user_string_n2, user_string_n_warn,
5 user_string_n_quoted, user_short, user_short_warn, user_int,
6 user_int_warn, user_long, user_long_warn, user_char, user_char_warn):
9 2008-03-20 Frank Ch. Eigler <fche@elastic.org>
12 * null.stp: New file, defining global NULL=0.
14 2008-03-11 Will Cohen <wcohen@redhat.com>
16 * syscalls2.stp (syscall.wait{4|id}): Correct for 2.6.24.n kernels.
18 2008-03-06 Ananth N Mavinakayanahalli <ananth@in.ibm.com
20 * i686/syscalls.stp: Handle sys_sigaltstack parameter after
23 2008-02-28 Will Cohen <wcohen@redhat.com>
26 * errno.stp (returnstr): Handle unified i386/x86_64 reg names.
28 2008-02-27 Masami Hiramatsu <mhiramat@redhat.com>
30 * x86_64/syscalls.stp (syscall.iopl): Use new_iopl instead of level
33 2008-01-25 Will Cohen <wcohen@redhat.com>
36 * syscalls.stp (__is_user_regs): Modify to work with older kernels.
38 2008-01-23 Masami Hiramatsu <mhiramat@redhat.com>
41 * syscalls.stp (__is_user_regs): Add new function to check whether
42 pt_regs is user mode registers.
43 (syscall.fork): Use __is_user_regs() to decide syscall name.
45 2008-01-16 Eugene Teo <eteo@redhat.com>
47 * signal.stp (get_sa_flags, get_sa_handler): New functions to
48 return addresses of sa_flags and sa_handler of struct k_sigaction.
49 (sigset_mask_str): New function. Returns a string containing the
50 set of signals to be blocked when executing the signal handler.
51 (is_sig_blocked): New function. Checks task_struct->blocked signal
52 mask for signals that are currently blocked.
53 (signal_str): New function. Translates a signal number.
54 (sa_flags_str): New function. Translates the sa_flags.
55 (sa_handler_str): New function. Returns the signal action or handler
56 associated to the signal.
58 2008-1-4 Masami Hiramatsu <mhiramat@redhat.com>
60 * aux_syscalls.stp (_stp_fork_list): Check kernel version for new
63 2008-1-4 Masami Hiramatsu <mhiramat@redhat.com>
66 * scheduler.stp (scheduler.ctxswitch): Change probe point __switch_to
67 to context_switch on ia64.
69 2007-12-27 Zhaolei <zhaolei@cn.fujitsu.com>
71 From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
72 * signal.stp (_signal.send.part3.return): Correct name variable.
74 2007-12-25 Zhaolei <zhaolei@cn.fujitsu.com>
76 From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
77 * aux_syscalls.stp (_struct_sigaction_u): Delete overlaped
78 SA_SIGINFO from _stp_sa_flags_list[].
80 2007-12-21 Zhaolei <zhaolei@cn.fujitsu.com>
82 From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
83 * aux_syscalls.stp (_futex_op_str): Add new futex options.
84 (_stp_fork_list[]): Add new clone flags.
86 2007-12-17 Martin Hunt <hunt@redhat.com>
88 * syscalls.stp (get_mempolicy): Fix syntax. Add prototype.
93 2007-12-17 Zhaolei <zhaolei@cn.fujitsu.com>
95 From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
96 * Add new address family to _fam_num2str: IUCV and RXRPC.
98 2007-12-17 Zhaolei <zhaolei@cn.fujitsu.com>
100 From Bai Weidong <baiwd@cn.fujitsu.com>
101 * syscalls.stp: Add missed compat* probes in syscalls.stp.
103 2007-12-12 Martin Hunt <hunt@redhat.com>
105 * syscalls2.stp (compat_sys_ptrace): Remove for now.
106 Utrace-patched kernels have a different compat_sys_ptrace().
108 2007-12-7 Zhaolei <zhaolei@cn.fujitsu.com>
110 From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
111 * syscalls2.stp: Add missed compat* probes in syscalls2.stp.
113 2007-12-7 Zhaolei <zhaolei@cn.fujitsu.com>
115 From Bai Weidong <baiwd@cn.fujitsu.com>
116 * aux_syscalls.stp (__sem_flags): Add the missed mode display,
117 Fix calculation error when string is empty.
119 2007-11-21 Zhaolei <zhaolei@cn.fujitsu.com>
121 From Bai Weidong <baiwd@cn.fujitsu.com>
122 * syscalls2.stp (rt_sigsuspend): Fix the semantic error caused by
123 the difference of kernel versions on IA64.
125 2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>
127 From Lai Jiangshan <laijs@cn.fujitsu.com>
128 * signal.stp (signal.do_action): Call __get_action_mask to get mask
129 to fix semantic error of accessing a struct.
130 * signal.stp (__get_action_mask): Add.
132 2007-11-12 Martin Hunt <hunt@redhat.com>
134 * logging.stp (print_char): Remove. Now implemented by
136 (log): Add a comment that it is deprecated.
138 2007-11-12 Martin Hunt <hunt@redhat.com>
140 * syscalls2.stp (sys_remap_file_pages: : Change kernel
141 version check to >= 2.6.24.
143 2007-11-8 Zhaolei <zhaolei@cn.fujitsu.com>
145 From Lai Jiangshan <laijs@cn.fujitsu.com>
146 * rpc.stp (clones_from_clnt): Use deref to check, then use
147 atomic_read to read an atomic_t to avoid compilation error of
149 (tasks_from_clnt): Ditto.
151 2007-11-6 Zhaolei <zhaolei@cn.fujitsu.com>
153 From Cai Fei <caifei@cn.fujitsu.com>
154 * rpc.stp (sunrpc.clnt.call_sync): Define procname only for
156 (sunrpc.clnt.call_async): Ditto.
158 2007-11-5 Zhaolei <zhaolei@cn.fujitsu.com>
160 From Cai Fei <caifei@cn.fujitsu.com>
161 * nfs_proc.stp: Use kread in get_ip and get_prot to avoid kernel
164 2007-11-2 Zhaolei <zhaolei@cn.fujitsu.com>
166 From Cai Fei <caifei@cn.fujitsu.com>
167 * nfsd.stp: Fix the semantic error caused by the difference of
169 * nfs_proc.stp: Ditto.
171 2007-11-1 Will Cohen <wcohen@redhat.com>
173 * syscall2.stp (sys_remap_file_pages): Fix compile error with kernel
174 version greater than 2.6.23.
176 2007-11-1 Zhaolei <zhaolei@cn.fujitsu.com>
178 From Lai Jiangshan <laijs@cn.fujitsu.com>
179 * rpc.stp (clones_from_clnt): Add CATCH_DEREF_FAULT().
180 (tasks_from_clnt): Ditto.
182 2007-10-17 Martin Hunt <hunt@redhat.com>
184 * endian.stp (set_endian): Remove.
186 2007-10-15 Dave Wilder <dwilder@us.ibm.com>
188 *aux_syscalls.stp:_dfd_str Added test for 32-bit value of AT_FDCWD
190 2007-10-15 Zhaolei <zhaolei@cn.fujitsu.com>
192 From Cai Fei <caifei@cn.fujitsu.com>
193 * conversions.stp: Add a function kernel_string_n for copy
194 non-0-terminated string with fixed length from kernel space at
196 * stapfuncs.5.in: Add kernel_string_n.
197 * nfsd.stp: Using kernel_string_n to copy non-0-terminated string
198 with fixed length from kernel space at given address.
199 * nfs_proc.stp: Ditto.
201 2007-10-12 Zhaolei <zhaolei@cn.fujitsu.com>
203 * queue_stats.stp (qsq_start): Fix problem that compile fails when
204 calling qsq_utilization or other query functions next to qsq_start.
206 2007-10-11 Zhaolei <zhaolei@cn.fujitsu.com>
208 * queue_stats.stp (qsq_utilization): Update queue account datas
210 (qsq_blocked): Ditto.
211 (qsq_wait_queue_length): Ditto.
212 (qsq_service_time): Ditto.
213 (qsq_wait_time): Ditto.
214 (qsq_throughput): Ditto.
216 2007-10-11 Zhaolei <zhaolei@cn.fujitsu.com>
218 From Cai Fei <caifei@cn.fujitsu.com>
219 * nfs_proc.stp (__nfs_write_data_info): Add data-access code for
220 count, valid and timestamp.
222 2007-10-11 Zhaolei <zhaolei@cn.fujitsu.com>
224 * udp.stp: Add name argument for all probes.
226 2007-10-10 Martin Hunt <hunt@redhat.com>
228 * aux_syscalls.stp (_stp_lookup_str): When defaulting
229 to a numeric value, append, don't overwrite.
231 2007-10-10 Zhaolei <zhaolei@cn.fujitsu.com>
233 From Lai Jiangshan <laijs@cn.fujitsu.com>
234 * aux_syscalls.stp (_stp_lookup_or_str) redirect to _stp_lookup_str
237 2007-10-09 Mike Mason <mmlnx@us.ibm.com>
239 * rpc.stp: Replaced atomic_read()'s with kread()'s
241 2007-10-09 Martin Hunt <hunt@redhat.com>
243 * aux_syscalls.stp (_sighandler_str): No
244 sa_restorer field for IA64.
246 2007-10-09 Martin Hunt <hunt@redhat.com>
248 * syscalls2.stp (sys_signal): Call
251 * aux_syscalls.stp (_stp_sigset_str): Don't
253 (_sighandler_str): New.
255 2007-10-09 Zhaolei <zhaolei@cn.fujitsu.com>
257 * queue_stats.stp (qsq_start): Add destruction for qs_utime.
259 2007-10-09 Zhaolei <zhaolei@cn.fujitsu.com>
261 From Cai Fei <caifei@cn.fujitsu.com>
262 * memory.stp (addr_to_node): Fix the compilation error of function
263 addr_to_node on IA64.
265 2007-10-05 Martin Hunt <hunt@redhat.com>
267 * aux_syscalls.stp: Put #ifdef CONFIG_COMPAT
270 * syscalls2.stp (rt_sigaction, sigaction): Call
271 _struct_sigaction_u().
273 * aux_syscalls.stp (_struct_timeval): Removed. No longer
274 necessary now that we have structure access in scripts.
275 (_struct_timespec): Ditto.
276 (_struct_itimerval): Ditto.
277 (_struct_timezone_u): Remove random CATCH_DEREF_FAULT()
279 (_stp_sigset_str): New.
280 (_struct_sigaction_u): New.
282 2007-10-04 Frank Ch. Eigler <fche@elastic.org>
284 * inet.stp: New tapset for htonl and friends.
286 2007-10-04 Zhaolei <zhaolei@cn.fujitsu.com>
288 * queue_stats.stp (qsq_print): Make value of ops/s output as float
290 2007-10-03 Zhaolei <zhaolei@cn.fujitsu.com>
292 * aux_syscalls.stp(_sockopt_level_str): Add support for protocol
294 * socket.stp (global define,begin): Ditto.
296 2007-10-02 Zhaolei <zhaolei@cn.fujitsu.com>
298 * tcp.stp: Add name argument for all probes.
299 * tcp.stp (tcp.setsockopt.return): Add comment.
301 2007-10-01 Martin Hunt <hunt@redhat.com>
303 * aux_syscalls.stp (_str_lookup_str): Print unmatched
306 2007-10-01 Zhaolei <zhaolei@cn.fujitsu.com>
308 * socket.stp (_success_check): Fix compare method.
310 2007-09-27 Martin Hunt <hunt@redhat.com>
312 * aux_syscalls.stp (_stp_lookup_str, _stp_lookup_or_str):
313 New functions to efficiently and safely read arrays of values
315 (_signal_name): Reimplement using _stp_lookup_str().
316 (_semctl_cmd): Ditto.
317 (__fork_flags): Ditto.
318 (_mmap_flags): Ditto.
319 (_mprotect_prot_str): Ditto.
320 (_shmat_flags_str): Ditto.
321 (_at_flag_str): Ditto.
322 (get_mmap_args): Complete rewrite for safety and correctness.
324 2007-09-27 Wenji Huang <wenji.huang@oracle.com>
326 * rpc.stp (clones_from_clnt, tasks_from_clnt): Fix for kernel >= 2.6.22.
327 * nfs.stp (__nfsi_ndirty) : Ditto.
328 * nfs_proc.stp (__nfsv4_bitmask) : Make bitmask valid according to CONFIG.
330 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
332 From Cai Fei <caifei@cn.fujitsu.com>
333 * rpc.stp (sunrpc.clnt.shutdown_client): Add argument progname's
334 definition for probe sunrpc.clnt.shutdown_client, because it
335 is in the man page but not defined in tapset.
337 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
339 From Cai Fei <caifei@cn.fujitsu.com>
340 * rpc.stp (sunrpc.clnt.call_sync, sunrpc.clnt.call_async): Fix
341 the output format of flags in argstr from hex to decimal just
342 to make it same as other probes.
344 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
346 * tcp.stp (sendmsg.return): Fix description of size variable.
347 * tcp.stp (recvmsg.return): Ditto.
349 2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
351 * socket.stp (aio_read): Fix compile error with kernel version
353 * socket.stp (aio_write): Ditto.
355 2007-09-26 Mike Mason <mmlnx@us.ibm.com>
358 Specified explicit types for __find_bdevname() parameters
359 and return value. The types could not be determined correctly
360 when __find_bdevname() was used in nfs.stp
362 Added __page_index() to work around problem dereferencing unions
365 Made generic.fop.sendfile conditional on kernel <= 2.6.22.
366 generic_file_sendfile() was removed in 2.6.23.
368 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>
370 From Lai Jiangshan <laijs@cn.fujitsu.com>
371 * syscall.stp (syscall.brk): Add probe point
372 kernel.function("ia64_brk").
373 * syscall.stp (syscall.mremap): Add probe point
374 kernel.function("ia64_mremap").
376 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>
378 From Lai Jiangshan <laijs@cn.fujitsu.com>
379 modify field-access operator from "." to "->" in all files.
381 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>
383 * syscalls.stp (adjtimex.return): Improve retstr.
384 * aux_syscalls.stp: Add a function(_adjtimex_return_str) for
387 2007-09-25 Frank Ch. Eigler <fche@elastic.org>
389 * socket.stp (sock_flags_num2str): Define SOCK_PASSCRED if needed.
391 2007-09-25 Frank Ch. Eigler <fche@elastic.org>
393 * nfs_proc.stp (__i2n_ip_proto): Add a cast for 32-bit compatibility.
395 2007-09-25 Frank Ch. Eigler <fche@elastic.org>
397 * signal.stp (_signal.send.part*): Remove sinfo alias variable,
398 since it's a struct rather than integral value.
400 2007-09-25 Martin Hunt <hunt@redhat.com>
402 * syscalls2.stp (sys_readlinkat): Make optional.
404 * aux_syscalls.stp (_struct_compat_timeval_u): ifdef
405 CONFIG_COMPAT so buildok test will pass.
407 2007-09-25 Zhaolei <zhaolei@cn.fujitsu.com>
409 From Cai Fei <caifei@cn.fujitsu.com>
410 * rpc.stp Fix the wrong calling of returnstr($return) to
411 returnstr(1) or returnstr(2).
413 2007-09-25 Zhaolei <zhaolei@cn.fujitsu.com>
415 From Cai Fei <caifei@cn.fujitsu.com>
416 * rpc.stp Add function for probe point sunrpc.clnt.create_client.
418 2007-09-24 Martin Hunt <hunt@redhat.com>
420 * aux_syscalls.stp (_at_flag_str): Add some more flags.
421 * syscalls2.stp (openat): Call _dfd_str().
423 2007-09-24 David Smith <dsmith@redhat.com>
425 * nfsd.stp (__svc_fh): Added missing semicolon.
427 2007-09-24 Frank Ch. Eigler <fche@elastic.org>
429 * aux_syscalls.stp: Add missing CATCH_DEREF_FAULT()s.
431 2007-09-24 Frank Ch. Eigler <fche@elastic.org>
433 * inet_sock.stp, ioblock.stp, rpc.stp, scsi.stp, socket.stp,
434 tcp.stp: Add /* pure */ to embedded-C functions.
436 2007-09-24 Frank Ch. Eigler <fche@elastic.org>
438 * conversions.stp (user_string): Redefine in terms of user_string2.
440 2007-09-23 Ulrich Drepper <drepper@redhat.com>
442 * syscalls2.stp (readlinkat): Add.
444 2007-09-21 Zhaolei <zhaolei@cn.fujitsu.com>
446 From Lai Jiangshan <laijs@cn.fujitsu.com>
447 * aux_syscalls.stp (_sys_open_flag_str): Fix bug that missing
450 From Lai Jiangshan <laijs@cn.fujitsu.com>
451 * aux_syscalls.stp: Add a function _mremap_flags.
452 * syscalls.stp (syscall.mremap): Use _mremap_flags instead of
455 2007-09-21 Zhaolei <zhaolei@cn.fujitsu.com>
457 * aux_syscalls.stp(_reboot_magic_str) Fix the problem that
458 LINUX_REBOOT_MAGIC1 printed as UNKNOWN VALUE.
460 2007-09-19 Martin Hunt <hunt@redhat.com>
462 * syscalls.stp (sys_bdflush): Make optional.
463 (sys_madvise): Ditto.
464 (sys_mincore): Ditto.
466 (sys_mlockall): Ditto.
467 (sys_mprotect): Ditto.
470 (sys_munlock): Ditto.
471 (sys_munlockall): Ditto.
472 * syscalls2.stp (sys_remap_pages): Make optional.
473 * ppc64/syscalls.stp (ppc_rtas): Make optional.
475 2007-09-19 Zhaolei <zhaolei@cn.fujitsu.com>
477 * syscall.stp(getrusage) Fix the output of getrusage's argstr
478 when who is set to -2.
480 2007-09-19 Zhaolei <zhaolei@cn.fujitsu.com>
482 From Lai Jiangshan <laijs@cn.fujitsu.com>
483 * ia64/syscalls.stp Add a probe point syscall.sigaltstack for
485 * signal.stp(signal.force_segv) Add a part(force_sigsegv_info)
486 for signal.force_segv.
488 2007-09-13 David Smith <dsmith@redhat.com>
490 * task.stp (task_open_file_handles): Fixed for kernels less than
492 (task_max_file_handles): Ditto.
494 2007-09-13 Martin Hunt <hunt@redhat.com>
496 * aux_syscalls.stp: Replace get_user calls with __stp_get_user.
498 2007-09-06 Zhaolei <zhaolei@cn.fujitsu.com>
500 * aux_syscalls.stp (_stp_sockaddr_str): Fix memory access error
501 when calling with addrlen set to 0.
503 2007-09-06 Zhaolei <zhaolei@cn.fujitsu.com>
505 * aux_syscalls.stp (_module_flags_str): Modify combination of
508 2007-09-04 Zhaolei <zhaolei@cn.fujitsu.com>
510 From Lai Jiangshan <laijs@cn.fujitsu.com>
511 * syscalls2.stp (quotactl): Init special_str before use.
512 (rt_sigqueueinfo): Change pid's type from %p to %d in argstr.
514 2007-08-31 Zhaolei <zhaolei@cn.fujitsu.com>
515 From Lai Jiangshan <laijs@cn.fujitsu.com>
516 * aux_syscalls.stp (_mknod_mode_str): Fix file type
519 2007-08-30 Wenji Huang <wenji.huang@oracle.com>
521 * nfs.stp (__iov_length): Update.
522 (nfs.fop.aio_read, nfs.fop.aio_write): Update calling __iov_length.
523 * vfs.stp (generic.fop.aio_read, generic.fop.aio_write): Modify evaluating count,buf.
524 (generic.fop.readv*, generic.fop.writev*, generic.fop.splice_read*,
525 generic.fop.splice_write*, generic.fop.read*, generic.fop.write*): Make optional.
526 (vfs.__set_page_dirty_buffers.return): Add condition.
527 (vfs.remove_from_page_cache.return): Fix typo.
528 (vfs.block_sync_page.return): Remove size and units.
530 2007-08-30 Zhaolei <zhaolei@cn.fujitsu.com>
532 * syscalls2.stp (syslog): Make $buf output as address in argstr.
534 2007-08-29 Zhaolei <zhaolei@cn.fujitsu.com>
536 * syscalls2.stp (sysfs): Set argstr's format different
537 by value of option arg.
539 2007-08-28 Wenji Huang <wenji.huang@oracle.com>
541 * tcp.stp (sockstate): Fix typo.
543 2007-08-28 Zhaolei <zhaolei@cn.fujitsu.com>
545 * syscalls.stp (bdflush): Add comma between args in argstr
546 Set second parameter(data)'s type by first parameter(func)'s
549 2007-08-27 Martin Hunt <hunt@redhat.com>
551 * context.stp (module_name): New. Returns the current
554 * tcp.stp (tcp_sendmsg): For 2.6.23, parameters change.
556 2007-08-27 Wenji Huang <wenji.huang@oracle.com>
558 * signal.stp (signal.do_action): Modify evaluating sa_handler,sa_mask.
560 2007-08-27 Zhaolei <zhaolei@cn.fujitsu.com>
562 * syscalls2.stp(sendto): Set $addr as content string in argstr.
564 2007-08-24 Wenji Huang <wenji.huang@oracle.com>
566 * scheduler.stp (scheduler.cpu_on,scheduler.migrate): Make optional.
567 (scheduler.migrate): Modify evaluating cpu_from with task_cpu.
569 2007-08-24 Zhaolei <zhaolei@cn.fujitsu.com>
571 * syscalls2.stp(send): Add len argument into argstr.
573 2007-08-09 William Cohen <wcohen@redhat.com>
575 * syscalls2.stp (compat_sys_utimensat): Correct function arg.
577 2007-08-23 Martin Hunt <hunt@redhat.com>
579 * syscalls2.stp (sys_tee.return): Make optional
581 2007-08-23 Martin Hunt <hunt@redhat.com>
583 * aux_syscalls.stp (_struct_compat_timeval_u): Fix
585 (_struct_compat_timespec_u): Cast args to long.
587 2007-08-23 Martin Hunt <hunt@redhat.com>
589 From Cai Fei <caifei@cn.fujitsu.com>
590 * aux_syscalls.stp (_waitid_opt_str): New.
591 (_wait4_opt_str): Just handle wait4 options.
592 * syscalls2.stp (sys_waitid): Use _waitid_opt_str.
594 2007-08-23 Wenji Huang <wenji.huang@oracle.com>
596 * rpc.stp (sunrpc.svc.process, sunrpc.svc.recv): Modify evaluating
597 sv_name,sv_prog,sv_nrthreads in kernel>=2.6.19.
598 (sunrpc.sched.delay,sunrpc.sched.delay): Fix typo.
599 (sunrpc.*.return): Change name by adding "return".
601 2007-08-23 Zhaolei <zhaolei@cn.fujitsu.com>
603 * aux_syscalls.stp (_send_flags_str): Add support for MSG_MORE
604 (used in send, sendto, sendmsg and compat_sys_sendmsg).
605 Change name of _send_flags_str to _sendflags_str for unify with
608 * syscalls2.stp(send, sendto, sendmsg, compat_sys_sendmsg): Change
609 name of _send_flags_str to _sendflags_str for unify with _recvflags_str.
611 2007-08-22 Martin Hunt <hunt@redhat.com>
613 * ppc64/syscalls.stp: Remove a bunch of
614 non-ppc64 specific probes.
616 * syscalls.stp (compat_sys_epoll_ctl): New.
617 (compat_sys_epoll_wait): New.
618 (sys_epoll_pwait): New.
619 (compat_sys_epoll_pwait): New.
620 (compat_sys_keyctl): New.
621 (compat_sys_mq_open): New.
622 (compat_sys_futex): New.
623 (compat_sys_mq_timedsend): New.
624 (compat_sys_mq_timedreceive): New.
625 (compat_sys_mq_notify): New.
626 (compat_sys_mq_getsetattr): New.
627 (init_module): Make optional and quote args.
630 * syscalls2.stp (sys_splice): New.
632 (compat_sys_vmsplice): New.
635 (compat_sys_signalfd): New.
637 (compat_sys_timerfd): New.
638 (old32_readdir): New.
640 2007-08-22 Martin Hunt <hunt@redhat.com>
642 * aux_syscalls.stp (_utimensat_flag_str): New.
644 (_struct_timeval2_u): Deleted.
645 (_struct_timeval_u): Take a number of structs to decode.
646 (_struct_compat_timeval2_u): Deleted
647 (_struct_compat_timeval_u): Take a number of structs to decode.
648 (_struct_timespec_u): Take a number of structs to decode.
649 Recognize UTIME_NOW and UTIME_OMIT.
650 (_struct_compat_timespec_u): Ditto.
652 * syscalls.stp (compat_sys_old_getrlimit): Removed.
653 (sys_migrate_pages): New.
654 (sys_move_pages): New.
656 * syscalls2.stp (compat_sys_sigprocmask): Removed. Calls
658 (compat_sys_sysinfo): New.
659 (compat_sys_rt_sigtimedwait): New.
660 (sys_utimensat, compat_sys_utimensat): New.
662 * ppc64/syscalls.stp (compat_sys_sigpending): Removed.
664 (compat_sys_setrlimit): Ditto.
665 (compat_sys_getrlimit): Ditto.
666 (compat_sys_old_getrlimit): Ditto.
667 (compat_sys_getrusage): Ditto.
668 (compat_sys_wait4): Ditto.
669 (compat_sys_sched_setaffinity): Ditto.
670 (compat_sys_sched_getaffinity): Ditto.
672 2007-08-22 Wenji Huang <wenji.huang@oracle.com>
674 * nfsd.stp (nfsd.proc?.*): Modify evaluating client_ip
675 with function addr_from_rqst to make it compatible in kernel>=2.6.19
676 (nfsd.proc4.compound,nfsd.read,nfsd.write): Fix typo.
677 (nfsd.unlink): Fix reference to variable iap.
679 2007-08-22 Wenji Huang <wenji.huang@oracle.com>
681 * nfs.stp (__iov_length): Updated, Temporary here.
682 * nfs_proc.stp (__i2n_ip_proto): Add type cast to sockaddr_in.
683 (nfs.proc?.*): Modify evaluating count and offset.
684 (nfs.proc?.read.return): Delete evaluating size and units.
685 (nfs.proc?.write.return): Modify evaluating size.
686 (nfs.proc?.create): Modify evaluating filename and filelen.
687 (nfs.proc?.rename): Fix typo.
689 2007-08-22 Zhaolei <zhaolei@cn.fujitsu.com>
691 * syscalls2.stp (syscall.setdomainname): Add argstr content
692 (argstr = "" -> argstr = sprintf("%p, %d", $name, $len)).
694 2007-08-21 Frank Ch. Eigler <fche@elastic.org>
696 From Cai Fei <caifei@cn.fujitsu.com>:
697 * syscalls2.stp, syscalls.stp: Added several missing argstr/retstr
700 2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>
702 * syscalls2.stp (syscall.select): Fixed variable name error
703 (timeout_uaddr = $tv->$tvp).
704 * aux_syscalls.stp (_recvflags_str): Add support for MSG_DONTWAIT
705 used in recv, recvfrom, recvmsg, compat_sys_recvmsg
707 2007-08-20 Masami Hiramatsu <mhiramat@redhat.com>
709 * ioblock.stp: Fix __bio_ino() not to access i_ino if the page is not
710 assigned to any inode.
712 2007-08-20 Wenji Huang <wenji.huang@oracle.com>
714 * nfs.stp (nfs.fop.aio_read, nfs.fop.aio_write): Modify evaluating count.
715 (__iov_length): New function.
716 (nfs.fop.sendfile, nfs.aop.set_page_dirty, nfs.aop.prepare_write,
717 nfs.aop.release_page): Fix typo.
719 2007-08-17 Martin Hunt <hunt@redhat.com>
720 From Lai Jiangshan <laijs@cn.fujitsu.com>
721 * syscalls.stp (creat): Fix argstr.
723 2007-08-17 Wenji Huang <wenji.huang@oracle.com>
725 * ioscheduler.stp (ioscheduler.elv_add_request,
726 ioscheduler.elv_completed_request): Add checking $rq.
728 * memory.stp (_IS_ZERO_PAGE): Modify reference to arguments.
730 2007-08-16 Frank Ch. Eigler <fche@elastic.org>
733 * target_set.stp: New tapset file.
735 2007-08-16 Martin Hunt <hunt@redhat.com>
737 * aux_syscalls.stp (_sock_family_str):
738 Add PF_IUCV, PF_RXRPC, PF_TIPC.
740 From zhaolei@cn.fujitsu.com
741 Remove PF_UNIX. PF_LOCAL is correct.
743 2007-08-16 Martin Hunt <hunt@redhat.com>
745 * aux_syscalls.stp (__get_argv): Add parameter to
746 optionally skip the first argv (argv[0]).
747 (__get_compat_argv): Ditto.
749 * syscalls.stp (execve): Set args to the whole argv.
750 For argstr use filename plus argv starting at [1].
751 (compat_execve): Ditto.
752 * ppc64/syscalls.stp (sys32_exevve): Ditto.
754 From Cai Fei <caifei@cn.fujitsu.com>
755 * syscalls.stp (sts_getpgid): Add pid arg.
757 2007-08-16 Wenji Huang <wenji.huang@oracle.com>
759 * errno.stp: Fix Typo for EADV.
761 2007-08-15 Wenji Huang <wenji.huang@oracle.com>
763 * aux_syscalls.stp (_reboot_flag_str,_futex_op_str,_mprotect_prot_str,
764 _fcntl_cmd_str, _quotaclt_cmd_str, _sock_type_str, _rlimit_resource_str,
765 _rusage_who_str): Add new entries, modify default return string.
767 2007-08-15 Martin Hunt <hunt@redhat.com>
769 * x86_64/syscalls.stp: Add support for sys32_mmap[2],
770 sys32_vm86_warning, and sys32_pipe.
771 * s390x/syscalls.stp (get_mmap_args): Move to aux_syscalls.
772 * aux_syscalls.stp (get_mmap_args): Moved here.
773 * syscalls.stp: Add sys32_alarm.
774 * syscalls2.stp: Add sys32_uname.
776 2007-08-15 Frank Ch. Eigler <fche@elastic.org>
778 * context.stp (cpuid, cpu): Use smp_processor_id().
780 2007-08-12 Wenji Huang <wenji.huang@oracle.com>
782 * aux_syscalls.stp(_sched_policy_str,_nfsctl_cmd_str): Add SCHED_BATCH to
783 policy entries, FSCTL_GETFD,NFSCTL_GETFS to nfsctl entries
785 2007-08-10 Josh Stone <joshua.i.stone@intel.com>
787 * conversions.stp (kernel_string, kernel_long, kernel_int,
788 kernel_short, kernel_char, user_string_warn): Use the
789 CONTEXT->error_buffer to create an error message instead of a static
792 2007-08-10 Frank Ch. Eigler <fche@elastic.org>
794 From "Zhaolei" zhaolei@cn.fujitsu.com:
795 * syscalls.stp (msync.return): Correct name variable.
797 2007-08-10 Frank Ch. Eigler <fche@elastic.org>
799 From "Zhaolei" zhaolei@cn.fujitsu.com:
800 * aux_syscalls.stp (_sockopt_optname_str): Add SO_SND/RCVBUFFORCE.
802 2007-08-09 Frank Ch. Eigler <fche@elastic.org>
804 From Cai Fei <caifei@cn.fujitsu.com>:
805 * aux_syscalls.stp (__fork_flags): Decode CLONE_VM, NEWNS, DETACHED.
807 2007-08-09 William Cohen <wcohen@redhat.com>
809 * tapset/syscalls.stp (syscall.compat_execve,
810 syscall.compat_execve.return):
811 * tapset/syscalls2.stp (syscall.compat_sys_semtimedop,
812 syscall.compat_sys_semtimedop.return):
813 * tapset/i686/syscalls.stp (syscall.set_zone_reclaim,
814 syscall.set_zone_reclaim.return): Make optional.
816 2007-08-08 Frank Ch. Eigler <fche@elastic.org>
818 From "Zhaolei" zhaolei@cn.fujitsu.com:
819 * aux_syscalls.stp (_sockopt_level_str): Correct level=1 string.
821 2007-08-03 Martin Hunt <hunt@redhat.com>
823 * aux_syscalls.stp (__get_compat_argv): Add cast.
825 2007-07-31 Martin Hunt <hunt@redhat.com>
827 * syscalls*: Move sys32_sysctl to arch dirs.
829 2007-07-31 Martin Hunt <hunt@redhat.com>
831 * syscalls.stp (clock_nanosleep): Fix flags string.
832 * syscalls2.stp: Fix typo.
834 2007-07-31 Martin Hunt <hunt@redhat.com>
836 * */syscalls.stp: Added mmap functions.
837 Continued moving common compatibility functions to
840 * aux_syscalls.stp (_shmat_flags_str): New.
841 (__get_compat_argv): New.
843 * syscalls.stp (adjtimex): Just print hex argument.
844 (compat_adjtimex): New.
845 (clock_getres): Also probe compat_clock_getres.
846 (clock_gettime): Also probe compat funcs.
847 (compat_clock_nanosleep): New.
848 (compat_execve): New.
850 (get[e][gu]id): Also probe sys32.
851 (getsockopt): Make optional. Also probe compat.
852 (mmap, mmap2): These are arch-specific, so move to individual
853 architecture subdirs.
854 (compat_sys_msgctl): New.
855 (compat_sys_msgrcv): New.
856 (compat_sys_msgsnd): New.
858 * syscalls.stp (pread32): Remove. It calls pread64 .
859 (quotactl): Make optional.
860 (recv): Probe correct function.
861 (recvfrom): Fix args.
862 (compat_sys_recvmsg): New.
863 (semctl): Make optional.
864 (compat_sys_semctl): New.
865 (semget): Make optional.
866 (semop): Make optional.
867 (semtimedop): Make optional.
868 (compat_sys_semtimedop): New.
869 (send): Make optional.
870 (sendmsg): Make optional.
871 (compat_sys_sendmsg): New.
872 (sendto): Make optional.
873 (setsockopt): Make optional. Add compat.
875 (compat_sys_shmat): New.
877 (compat_sys_shmctl): New.
880 (shutdown): Make optional.
881 (socket): Make optional.
882 (socketpair): Make optional.
883 (swapoff): Make optional.
884 (swapon): Make optional.
885 (sysctl): Add probe on sys32.
887 2007-07-31 Frank Ch. Eigler <fche@elastic.org>
890 * ppc64/syscalls.stp: Remove duplicate sys_request_key{,.return}
893 2007-07-30 Dave Wilder <dwilder@us.ibm.com>
896 * syscalls2.stp (syscall.pread and syscall.pread32)
897 For s390x only changed the $buf argument to $ubuf.
898 Change the format for count and position from %p to %d
899 to make it consistant with sys_read and sys_write.
901 2007-07-25 Mike Mason <mmlnx@us.ibm.com>
904 * memory.stp (vm.pagefault, vm.pagefault.return):
905 __handle_mm_fault renamed back to handle_mm_fault in 2.6.23.
906 Changed probes to look for either name in mm/memory.c and removed
907 kernel version check.
908 * task.stp (task_cpu): thread_info in task_struct changed
909 to stack in 2.6.23. Usage appears to be the same as before.
911 2007-07-17 Mike Mason <mmlnx@us.ibm.com>
913 * socket.stp: changed initialization of *num2str arrays to
916 2007-07-16 Martin Hunt <hunt@redhat.com>
917 (compat_sys_io_submit): Fix typo.
919 2007-07-16 Martin Hunt <hunt@redhat.com>
920 * syscalls.stp (compat_sys_fcntl64, compat_sys_fcntl): Add.
921 (compat_sys_fstatfs64): Add.
922 (compat_sys_getdents, compat_sys_getdents64): Add.
923 (compat_sys_ioctl): Add.
924 (compat_sys_io_getevents): Add.
925 (compat_sys_io_setup): Add.
926 (compat_sys_io_submit): Add.
928 * syscalls2.stp (compat_sys_nfsservctl): Add.
931 (compat_sys_ppoll): Add.
932 (sys32_pread64): Add.
933 (sys32_pwrite32): Add.
934 (sys_pwrite64): Print quoted string.
935 (sys_pselect6, compat_sys_pselect6): Add.
936 (sys_pselect7, compat_sys_pselect7): Add.
937 (compat_sys_old_readdir): Add.
938 (sys_select): Don't try to print fd_sets.
939 (compat_sys_select): Add.
940 (compat_sys_statfs64): Add.
942 * ppc/syscalls.stp: Remove duplicated probes.
944 * aux_syscalls.stp (_nfsctl_cmd_str): New.
945 (_fd_set_u): Removed. Not used.
947 2007-07-11 Eugene Teo <eteo@redhat.com>
949 * tcp.stp (tcp_sockstate_str, tcp_sockopt_str,
950 tcp_setsockopt): New. Also added sockopt and sockstate
953 2007-07-10 Martin Hunt <hunt@redhat.com>
955 * aux_syscalls.stp (_struct_compat_timeval2_u):
958 2007-07-10 Martin Hunt <hunt@redhat.com>
959 * syscall*.stp: Major reorganization work.
960 * aux_syscalls.stp (_sigprocmask_how_str): Rewrite
961 in C so real arch-dependent header files
963 (_mlockall_flags_str): Ditto.
965 2007-07-09 Martin Hunt <hunt@redhat.com>
966 * syscalls2.stp (compat_sys_settimeofday): New.
968 2007-07-09 Martin Hunt <hunt@redhat.com>
970 * syscalls2.stp (compat_sys_utimes): New.
971 * ppc64/syscalls.stp (compat_sys_utimes): Removed.
973 * syscalls.stp (compat_sys_futimesat): Fix arg.
975 2007-07-03 Martin Hunt <hunt@redhat.com>
977 * syscalls.stp: Add sys_futimesat, compat_sys_futimesat.
978 * syscalls2.stp (utimes): Use _struct_timeval2_u.
979 * aux_syscalls.stp (_struct_timeval2_u): New function.
980 (_struct_compat_timeval2_u): New function.
982 2007-07-02 Martin Hunt <hunt@redhat.com>
984 * context.stp (print_backtrace): If no regs, just
985 print the probe point.
987 2007-06-22 Frank Ch. Eigler <fche@elastic.org>
989 * syscalls_cfg_trunc.stp: New file for configuration global.
990 * syscalls.stp (add_key, mount), syscalls2.stp (write):
993 2007-06-15 Martin Hunt <hunt@redhat.com>
995 * syscalls.stp: Add sys_fcntl64, sys_oabi_fstat64,
997 * syscalls2.stp: Fix sys_send. Add sys_sendfile64.
998 * errno.stp: Add arm support.
1000 2007-06-14 Mike Mason <mmlnx@us.ibm.com>
1002 * socket.stp: removed extra assignment to "size" in
1003 socket.aio_write.return
1005 2007-06-07 Martin Hunt <hunt@redhat.com>
1006 Fallout from PR 3331 fix. Sometimes glibc and the
1007 kernel disagree about signed vs unsigned.
1008 * aux_syscalls.stp: Rename __uid() to __int32().
1009 * syscalls.stp: Change syscall.chown, syscall.fchown,
1010 syscall.lchown, and syscall.lseek to use __int32().
1011 * syscalls2.stp: Change syscall.setregid, syscall.resgid,
1012 syscall.resuid, and syscall.setreuid to use __int32().
1014 2007-05-17 Martin Hunt <hunt@redhat.com>
1016 * syscalls.stp: Make optional sys_alarm, sys_fadvise64,
1017 sys_gethostname, sys_getpgrp, and sys_llseek.
1018 (syscall.getrlimit): Add optional calls sys_old_getrlimit,
1019 compat_sys_getrlimit, and compat_sys_old_getrlimit.
1021 * syscalls2.stp: Make optional sys_nice, sys_rt_sigreturn,
1022 sys_signal, sys_sigprocmask, sys_utime
1023 (syscall.old_getrlimit): Moved into syscall.getrlimit.
1025 2007-05-16 Will Cohen <wcohen@redhat.com>
1027 * syscall2.stp: Correct sys_pipe function args for ia64.
1029 2007-05-16 Will Cohen <wcohen@redhat.com>
1032 * scheduler.stp: Correct function argument.
1034 2007-05-09 Martin Hunt <hunt@redhat.com>
1036 * syscalls2.stp: Added compat_sys_pause to syscall.pause.
1038 * syscalls.stp: Added sys_lstat64 to syscall.lstat.
1039 Added compat_sys_gettimeofday to syscall.gettimeofday.
1041 * ppc64/syscalls.stp: Remove sys_lstat64.
1042 * i686/syscalls.stp: Remove sys_lstat64.
1044 2007-04-25 David Wilder <dwilder@us.ibm.com>
1046 * syscall2.stp:syscall.pause added sys32_pause to probe list.
1048 2007-04-25 David Wilder <dwilder@us.ibm.com>
1050 * s390x/syscall.stp: Fix bug in syscall.mmap returning the wrong args
1051 for 32-bit versions of mmap calls.
1053 2007-04-24 Will Cohen <wcohen@redhat.com>
1055 * memory.stp: Update vm.pagefault.return comment.
1057 2007-04-24 Mike Mason <mmlnx@us.ibm.com>
1059 * socket.stp: adapted to changes in 2.6.19 socket routines
1061 2007-04-24 Will Cohen <wcohen@redhat.com>
1063 * memory.stp: Add matching vm.pagefault.return
1065 2007-04-23 Frank Ch. Eigler <fche@elastic.org>
1067 * scheduler.stp (scheduler.ctxswitch): Since it's marked __kprobes
1068 switch from __switch_to to context_switch on x86-64 in Ipswitch.
1070 2007-04-04 Sébastien Dugué <sebastien.dugue@bull.net>
1072 * scsi.stp: Fix for when the scsi driver is built into the kernel.
1074 2007-04-11 Martin Hunt <hunt@redhat.com>
1076 * aux_syscalls.stp: Add in6.h include.
1078 2007-04-10 Martin Hunt <hunt@redhat.com>
1080 * logging.stp (print_char): New function.
1082 * aux_syscalls.stp: Clean up network includes.
1084 2007-04-09 Mike Mason <mmlnx@us.ibm.com>
1086 * DEVGUIDE: Added new tapset developer's guide.
1088 2007-03-30 Frank Ch. Eigler <fche@elastic.org>
1091 * memory.stp, scheduler.stp, signal.stp, LKET/signal.stp: Adapt
1092 to .inline -> .function change.
1094 2007-03-09 Pierre Peiffer <pierre.peiffer@bull.net>
1096 * nfsd.stp (nfsd.dispatch): Change initialization of variable
1097 client_ip with a call to addr_from_rqst.
1098 * rpc.stp (addr_from_rqst): - update with changes in struct svc_rqst
1099 - __rpc_execute returns void now. struct rpc_xprt modified since
1101 * nfs.stp, vfs.stp: Local variables f_dentry renamed, because
1102 conflicting with a new #define in kernel header linux/fs.h in 2.6.20.
1104 2007-02-29 David Wilder <dwilder@us.ibm.com>
1106 *conversions.stp (kernel_int) added goto success; (PR 4419)
1108 2007-02-22 David Wilder <dwilder@us.ibm.com>
1110 * syscalls.stp, s390x/syscall.stp: Created an s390x version of
1111 syscall.mmap, syscall.mmap2, syscall.mmap.return, syscall.mmap2.return.
1113 2007-02-09 Fr ank Ch. Eigler <fche@elastic.org>
1115 * conversions.stp (*): Make errmsg usage uniform.
1117 2007-02-06 Josh Stone <joshua.i.stone@intel.com>
1119 * aux_syscalls.stp, inet_sock.stp, ioblock.stp, ioscheduler.stp,
1120 nfs.stp, nfs_proc.stp, nfsd.stp, rpc.stp, scsi.stp, signal.stp,
1121 socket.stp, task.stp, tcp.stp, vfs.stp: Protect pointer dereferences
1122 with kread wherever possible. Some places still have hazards, as
1125 * errno.stp (returnstr): Don't use return in tapset C functions.
1126 * aux_syscalls.stp (__uget_timex_m): Ditto.
1127 * nfsd.stp (__get_fh): Ditto.
1128 * nfs.stp, vfs.stp (<many functions>): Ditto.
1129 * string.stp (substr): Ditto. Also make sure start index is valid.
1131 * syscalls.stp (syscall.execve): Change __string to kernel_string.
1133 2007-02-06 Frank Ch. Eigler <fche@elastic.org>
1135 * conversions.stp (kernel_long/int/short/char): New functions.
1137 2007-01-31 Martin Hunt <hunt@redhat.com>
1139 * context.stp (print_backtrace): Modify for new
1141 (backtrace): Just use _stp_stack_snprint().
1142 (print_stack): Use new _stp_print* functions.
1143 (probefunc): Use _stp_symbol_snprint.
1145 2007-01-26 Josh Stone <joshua.i.stone@intel.com>
1147 * vfs.stp (ppos_pos): Change deref() to kread() so i686 passes.
1149 2007-01-25 Mike Mason <mmlnx@us.ibm.com>
1151 * socket.stp: Fix for missing SOCK_PASSSEC in kernels earlier
1154 2007-01-25 Martin Hunt <hunt@localhost.localdomain>
1156 * syscalls2.stp: Add sys32_ustat probe.
1158 2007-01-23 Mike Mason <mmlnx@us.ibm.com>
1160 * socket.stp: Fixed bit checking method in sock_flags_num2str()
1161 to match how it's done in the kernel.
1163 2007-01-23 Mike Mason <mmlnx@us.ibm.com>
1165 * socket.stp: New sockets tapset.
1167 2007-01-23 Mike Mason <mmlnx@us.ibm.com>
1169 * string.stp: Added tokenize() and strtol() functions.
1171 2007-01-17 Martin Hunt <hunt@redhat.com>
1173 * syscalls.stp: Add syscall.creat.
1174 * syscalls2.stp: Add compat_sys_open.
1176 2007-01-13 Mike Mason <mmlnx@us.ibm.com>
1178 * ioblock.stp: renamed __bio_direction() to bio_rw_num()
1180 2007-01-12 Mike Mason <mmlnx@us.ibm.com>
1182 * x86_64/syscalls.stp: added ? to request_key aliases
1183 to prevent syscall.* failures on some kernels
1185 2006-12-29 Li Guanglei <guanglei@cn.ibm.com>
1187 From Gui Jian <guij@cn.ibm.com>
1188 * ioscheduler.stp, nfsd.stp, nfs.stp, nfs_proc.stp,
1189 rpc.stp, vfs.stp: patch for 2.6.19 kernel
1191 2006-12-18 Frank Ch. Eigler <fche@elastic.org>
1193 * vfs.stp (ppos_pos): Protect contents with deref(), though
1194 this blocks operation on i686 due to bug #3079.
1196 2006-12-13 Mike Mason <mmlnx@us.ibm.com>
1198 * scheduler.stp: fixed last line in scheduler.ctxswitch to
1199 reference $prev_p->state instead of $prev_p->pid.
1201 2006-12-11 Li Guanglei <guanglei@cn.ibm.com>
1203 From Gui Jian <guij@cn.ibm.com>
1204 * nfs.stp, nfs_proc.stp, rpc.stp: patch for 2.6.9 kernel
1206 2006-11-29 Li Guanglei <guanglei@cn.ibm.com>
1208 From Gui Jian <guij@cn.ibm.com>
1209 * scheduler.stp, vfs.stp: made idle_balance and
1210 buffer_migrate_page optinal.
1212 2006-11-20 Frank Ch. Eigler <fche@elastic.org>
1214 * context.stp (caller_addr): Declare return type.
1216 2006-11-07 Li Guanglei <guanglei@cn.ibm.com>
1218 From Gui Jian <guij@cn.ibm.com>
1219 * signal.stp, memory.stp: make do_mmap2, copy_cow_page
1220 and signal.handle.return optional since they are obsolete
1221 or failed to probe on 2.6.18.1/ppc64
1223 2006-11-02 Frank Ch. Eigler <fche@elastic.org>
1225 * README: Add a blurb against running these scripts directly.
1227 2006-10-29 Thang Nguyen <thang.p.nguyen@intel.com>
1229 * context.stp: Added proper handling of statement
1230 * probe in probefunc() for IA64 (bz# 3423)
1232 2006-10-16 Li Guanglei <guanglei@cn.ibm.com>
1233 * scsi.stp: check whether rq_disk is empty
1234 * scheduler.stp: revert changes for x86_64
1236 2006-10-13 Li Guanglei <guanglei@cn.ibm.com>
1237 * scsi.stp: add some variables
1238 * scheduler.stp: skip __switch_to on x86_64
1240 2006-10-12 Martin Hunt <hunt@redhat.com>
1241 * context.stp (print_backtrace): Pass in new
1242 kretprobe instance arg.
1244 (is_return): Rewrite.
1247 (stack_unused): New.
1251 2006-10-12 Li Guanglei <guanglei@cn.ibm.com>
1252 * ioscheduler.stp: bugfix to avoid refer to NULL pointer
1254 2006-10-11 Li Guanglei <guanglei@cn.ibm.com>
1255 * nfs.stp, nfsd.stp: bugfix of pointer conversion on
1257 * i686/syscall.stp: make sys_request_key optional since
1258 it failed to probe on 2.6.18/i386
1260 2006-10-04 Frank Ch. Eigler <fche@elastic.org>
1262 * context.stp (probefunc): Return empty string for
1263 userspace (< PAGE_OFFSET) pointers.
1265 2006-09-26 David Smith <dsmith@redhat.com>
1267 * test/run.sh: Changed 'stpd' references to 'staprun'.
1269 2006-09-20 Josh Stone <joshua.i.stone@intel.com>
1272 * timestamp.stp (gettimeofday_ns): New function
1273 (gettimeofday_us, gettimeofday_ms, gettimeofday_s):
1274 Use gettimeofday_ns as the base unit.
1276 2006-09-19 Li Guanglei <guanglei@cn.ibm.com>
1278 From Gui Jian <guijian@cn.ibm.com>
1280 * rpc.stp: Some changes and more comments of RPC tapset
1282 2006-09-18 Martin Hunt <hunt@redhat.com>
1284 * logging.stp (stp_print_binary): New function.
1285 * string.stp: Fix docs.
1287 2006-09-12 Li Guanglei <guanglei@cn.ibm.com>
1289 From Li Xuepeng <xuepengl@cn.ibm.com>
1291 * nfsd.stp, nfs_proc.stp, nfs.stp:
1292 Change NFS file identifier. Change NFS version data type
1293 from String to INT. Add version variable to nfs_open
1296 2006-09-11 Li Guanglei <guanglei@cn.ibm.com>
1298 From Gui Jian(guijian@cn.ibm.com>
1299 * rpc.stp: tapsets for RPC activities.
1301 2006-08-30 Li Guanglei <guanglei@cn.ibm.com>
1303 * signal.stp: some changes to arguments and comments
1306 2006-08-25 Li Guanglei <guanglei@cn.ibm.com>
1309 * vfs.stp,nfsd.stp,nfs.stp: bug fixes and more error checking
1311 2006-08-23 Li Guanglei <guanglei@cn.ibm.com>
1313 * vfs.stp: New tapset from Thomas Zanussi(trz@us.ibm.com) to probe
1314 vfs layer activities.
1315 * nfs.stp: New tapset from Li Xuepeng(xuepengl@cn.ibm.com) to probe
1316 nfs file operations and nfs address space operations on client side.
1317 * nfs_proc.stp: New tapset from Li Xuepeng to probe some nfs RPC
1318 procedure stub functions on client side.
1319 * nfsd.stp: New tapset from Li Xuepeng to probe nfs server side
1320 activities, including some RPC procedure stub functions, nfsd
1321 dispatch routine, and nfsd_* functions
1323 2006-08-22 Li Guanglei <guanglei@cn.ibm.com>
1325 * signal.stp: More variables for signal.do_action and
1326 signal.procmask. New function of get_sigset(). Minor
1327 changes to naming of signal.pend and its comments
1330 2006-08-21 Martin Hunt <hunt@redhat.com>
1332 * string.stp (substr): Rewrite. Make the 3rd parameter
1335 2006-08-17 Josh Stone <joshua.i.stone@intel.com>
1337 * signal.stp: Changes on behalf of Manoj S Pattabhiraman:
1338 1. As per the suggestions, i have removed the argstr from the
1340 2. Added some checks to find whether the signals generated are
1341 USER or Kernel Mode in signal_handle probe.
1343 2006-08-17 Li Guanglei <guanglei@cn.ibm.com>
1345 * signal.stp: update signal tapsets based on the discussion
1346 with Josh Stone on mailinglist:
1347 1. Added "send2queue" and "name" variable for signal.send.part*
1348 2. Added signal.send.return probe alias
1349 3. Added signal.checkperm and signal.checkperm.return probe alias
1350 4. Commented out signal.handle_stop
1351 5. Alias all signal syscalls to syscall tapsets.
1353 2006-08-15 Thang Nguyen <thang.p.nguyen@intel.com>
1355 * ioblock.stp: Added safety checks for __bio_ino() and
1358 2006-08-09 Thang Nguyen <thang.p.nguyen@intel.com>
1360 * ioblock.stp: Merged io.stp from Tom Zanussi (IBM) into existing
1361 ioblock.stp. Removed/Renamed duplicate variables and probes.
1363 2006-08-09 Josh Stone <joshua.i.stone@intel.com>
1365 * signal.stp: Create a new tapset that addresses process signals.
1366 Much of this was contributed by Manoj Pattabhiraman (IBM).
1367 * process.stp: Remove aliases that now belong in signal tapset
1368 * memory.stp: move pagefault to vm.* namespace, and add many other
1369 virtual-memory themed probes.
1371 2006-08-09 David Smith <dsmith@redhat.com>
1373 * syscalls.stp: Fixed typo in syscall.kexec_load argument
1376 2006-08-08 Eugene Teo <eteo@redhat.com>
1378 * context.stp (probemod): New function.
1380 2006-07-18 Thang Nguyen <thang.p.nguyen@intel.com>
1382 * context.stp: Modified probefunc() to print the function
1383 name (without the dot) for statement probe on ppc64.
1385 2006-07-17 David Smith <dsmith@redhat.com>
1387 * context.stp: Removed returnval() function. Use $return
1389 * return.stp: Removed. Use $return instead.
1391 2006-07-17 Tom Zanussi <zanussi@us.ibm.com>
1393 * ioblock.stp: add null bi_bdev check to bio_devname()
1395 2006-07-17 Li Guanglei <guanglei@cn.ibm.com>
1397 * syscalls.stp: make sys_acct, sys_add_key, sys_keyctl
1398 and sys_modify_ldt optional on ppc64 since they are
1400 * ppc64/syscalls.stp: remove syscall.acct, syscall.add_key
1401 and syscall.umask since they are already defined in
1404 2006-07-04 Martin Hunt <hunt@redhat.com>
1406 * syscalls.stp, syscalls2.stp: Use user_string_quoted().
1408 2006-07-04 Li Guanglei <guanglei@cn.ibm.com>
1410 * syscalls.stp, syscalls2.stp, ppc64/syscalls.stp:
1411 fix syscall.lstat, syscall.lstat64, syscall.newlstat.
1412 * ppc64/syscalls.stp: fix syscall.compat_sys_statfs and
1415 2006-07-04 Li Guanglei <guanglei@cn.ibm.com>
1417 * memory.stp: add addr_to_node() from Jose R. Santos
1419 * syscalls.stp: typo for syscall.lstat
1421 2006-06-30 Martin Hunt <hunt@redhat.com>
1423 * conversions.stp (user_string): Don't generate errors
1424 on faults, just return <unknown>.
1425 (user_string2): New function.
1426 (user_string_warn): New function.
1428 2006-06-26 Martin Hunt <hunt@redhat.com>
1430 * aux_syscalls.stp (_stp_ctime): New function.
1431 (_struct_utimbuf_u): New function.
1433 2006-06-25 Li Guanglei <guanglei@cn.ibm.com>
1435 * syscalls.stp: Changes to AIO related syscalls(io_setup,
1436 io_submit, io_getevents, io_cancel, io_destroy)
1438 2006-06-23 Thang Nguyen <thang.p.nguyen@intel.com>
1440 * tcp.stp: Refined variables and added more
1441 function descriptions.
1442 * udp.stp: UDP tapset.
1443 * inet_sock.stp: common inet_sock functions
1444 for TCP and UDP tapsets.
1446 2006-06-22 Thang Nguyen <thang.p.nguyen@intel.com>
1448 * tcp.stp: TCP tapset (originally from IBM)
1450 2006-06-21 Josh Stone <joshua.i.stone@intel.com>
1453 * timestamp.stp (gettimeofday_us, gettimeofday_ms, gettimeofday_s):
1454 Convert to using the runtime-provided _stp_gettimeofday_us().
1456 2006-06-19 Martin Hunt <hunt@redhat.com>
1458 * syscalls.stp: Make the 16-bit calls optional.
1459 * syscalls2.stp: Ditto.
1461 2006-06-09 Martin Hunt <hunt@redhat.com>
1463 * syscalls2.stp: Fix sys_sync.
1465 2006-06-09 Martin Hunt <hunt@redhat.com>
1467 * syscalls2.stp: Fixed the uid and gid calls.
1469 2006-06-09 Li Guanglei <guanglei@cn.ibm.com>
1471 * syscalls.stp: made sys_ftruncate64 optional since it doesn't
1472 exist on 2.6.16*/ppc64
1474 2006-06-08 Thang Nguyen <thang.p.nguyen@intel.com>
1476 * ioblock.stp: new (block I/O activities)
1478 2006-06-06 Josh Stone <joshua.i.stone@intel.com>
1480 * process.stp (create, exec_complete): replace retval() with $return
1482 2006-06-02 Josh Stone <joshua.i.stone@intel.com>
1484 * process.stp (exec, exec_complete): conditionally include
1485 compat_do_execve for 64-bit kernels
1486 * process.stp (handle_signal): use optional probes to alternate
1487 between function or inline
1489 2006-05-30 Martin Hunt <hunt@redhat.com>
1491 * aux_syscalls.stp (_mountflags_str): Rewrite.
1492 (_umountflags_str): New.
1494 * syscalls.stp (fstatfs.return): Add retstr.
1496 * syscalls2.stp (sys_write): Use text_strn().
1497 * syscalls.stp (sys_lseek): Fix.
1500 * string.stp (text_str): New.
1503 2006-05-26 Martin Hunt <hunt@redhat.com>
1505 * errno.stp: Add octal option for returnstr.
1507 * [i686,x86_64]/syscalls.stp (umask): Print args and return
1509 (add_key): Comment out. This syscall is added by a xen patch
1510 and may not be present.
1513 * syscalls.stp (accept): Fix arg name.
1515 2006-05-25 Martin Hunt <hunt@redhat.com>
1517 * syscalls.stp: Add sys_fcntl and sys_listen.
1519 * syscalls2.stp: Commented out sys_socketcall because it only calls
1520 other system calls which are already probed.
1522 2006-05-25 Martin Hunt <hunt@redhat.com>
1524 * syscall*.stp: Change "0x%p" to "%p".
1526 2006-05-25 Li Guanglei <guanglei@cn.ibm.com>
1528 * scheduler.stp: add prev_task and next_task variable.
1530 2006-05-24 Josh Stone <joshua.i.stone@intel.com>
1533 * context.stp (probefunc): Use _stp_symbol_sprint_basic
1535 2006-05-19 Li Guanglei <guanglei@cn.ibm.com>
1537 Patch from Mao Bibo (bibo.mao@intel.com)
1538 * tapset/aux_syscalls.stp: change %lx to %llx in snprintf to
1539 print the address in IA64
1541 2006-05-19 Li Guanglei <guanglei@cn.ibm.com>
1543 * tapset/ioscheduler.stp: change . to -> operator to get the
1546 2006-05-18 Li Guanglei <guanglei@cn.ibm.com>
1548 * tapset/LKET/*: tracing tapsets of LKET
1549 * tapset/context.stp: add stp_pid() func
1550 * tapset/ppc64/syscalls.stp: add conditional preprocessing
1551 since sys64_time is removed from kernel >= 2.6.16
1553 2006-05-18 Li Guanglei <guanglei@cn.ibm.com>
1555 * tapset/tskschedule.stp: deleted, merge into scheduler.stp
1556 * tapset/scheduler.stp: incorporate tskschedule.stp
1558 2006-05-17 Josh Stone <joshua.i.stone@intel.com>
1560 * process.stp: Rename signal.send to signal_send and process.complete
1561 to process_complete, to allow process.* to work properly.
1562 * process.stp (_IS_ERR): declare parameter type
1563 * process.stp (process.create): correct new_pid assignment
1564 * scheduler.stp: New scheduler tapset
1566 2006-05-18 Li Guanglei <guanglei@cn.ibm.com>
1568 * tapset/ioscheduler.stp: generic IO scheduler tapsets from LKET
1569 * tapset/memory.stp: generic pagefault tapsets from LKET
1570 * tapset/networking.stp: generic networking tapsets from LKET
1571 * tapset/scsi.stp: generic scsi tapsets from LKET
1572 * tapset/tskschedule.stp: generic task scheduler tapsets from LKET
1573 * tapset/process.stp: changes to process.exec alias
1576 2006-05-16 David Smith <dsmith@redhat.com>
1578 * conversions.stp (hexstring, string): Removed functions. Because
1579 of parser changes, "string" is now a reserved word and cannot be a
1580 function name. Use 'sprintf("0x%x", num)' to replace hexstring()
1581 and either 'sprint(num)' or 'sprintf("%d", num)' to replace
1584 * syscalls.stp (syscall.accept, syscall.alarm, syscall.close,
1585 syscall.dup, syscall.epoll_create, syscall.exit, syscall.fchdir,
1586 syscall.fdatasync, syscall.fsync, syscall.getsid) Changed
1587 'string()' calls to 'sprint()' calls.
1588 * syscalls2.stp (syscall.sched_get_priority_max,
1589 syscall.sched_get_priority_min, syscall.sched_getscheduler,
1590 syscall.setfsgid, syscall.setfsgid16, syscall.setfsuid,
1591 syscall.setfsuid16, syscall.setgid, syscall.setgid16,
1592 syscall.setuid, syscall.setuid16, syscall.ssetmask,
1593 syscall.timer_delete, syscall.timer_getoverrun): Ditto.
1594 * i686/syscalls.stp (syscall.iopl, syscall.rt_sigreturn,
1595 syscall.sigreturn): Ditto.
1596 * ppc64/syscalls.stp (syscall.ppc64_personality): Ditto.
1597 * x86_64/syscalls.stp (kernel.syscall.iopl, kernel.syscall.umask):
1600 * test/ctostp.sh: Uses 'sprint()' instead of 'string()' in
1601 generated systemtap code.
1603 2006-05-14 Martin Hunt <hunt@redhat.com>
1605 * aux_syscalls.stp (_sys_open_flag_str): Rewrite in C so it
1606 is complete and works on different archs.
1608 2006-05-09 Josh Stone <joshua.i.stone@intel.com>
1610 * context.stp (probefunc): remove use of labels
1611 * task.stp: functions to retrieve task information
1612 * process.stp: tapset for process-related events
1614 2006-05-08 Josh Stone <joshua.i.stone@intel.com>
1617 From Thang P Nguyen <thang.p.nguyen@intel.com>
1618 * context.stp (probefunc): expands ability to detect the function
1619 for different types of probes.
1621 2006-05-05 Frank Ch. Eigler <fche@elastic.org>
1624 * syscalls.stp: Put back some dummy syscall.exit*.return probes.
1626 2006-05-03 Frank Ch. Eigler <fche@elastic.org>
1628 * context.stp, errno.stp: Note/eliminate some retval() duplication.
1630 2006-04-27 Martin Hunt <hunt@redhat.com>
1632 * endian.stp (set_endian): Remove "pure" to prevent
1633 this from optimizing away.
1635 2006-04-21 Frank Ch. Eigler <fche@elastic.org>
1637 * aux_syscalls.stp (_fildes_u): Declare return value type.
1639 2006-04-18 Frank Ch. Eigler <fche@elastic.org>
1641 * conversions.stp (string, hex_string): Use snprintf for safety.
1643 2006-04-18 Martin Hunt <hunt@redhat.com>
1645 * conversions.stp (user_string): Reenable error message.
1647 2006-04-17 Martin Hunt <hunt@redhat.com>
1649 * endian.stp (set_endian): New function.
1651 2006-03-06 Martin Hunt <hunt@redhat.com>
1653 * system.stp: New tapset.
1655 2006-03-01 Martin Hunt <hunt@redhat.com>
1657 * aux_syscalls.stp (_struct_sockaddr_u): Parse sockaddr.
1659 * syscalls.stp (bind): Call _struct_sockaddr_u().
1661 * errno.stp (errno_str): Complete rewrite in C for speed and
1663 (returnstr): New function for syscall tapet.
1665 2006-02-22 Frank Ch. Eigler <fche@elastic.org>
1667 * timestamp.stp (get_cycles): New function.
1669 2006-02-21 Martin Hunt <hunt@redhat.com>
1671 * context.stp: Fix definition of returnval(). Now the same as retval().
1672 Cleanup needed. Only one can survive.
1674 2006-02-17 Frank Ch. Eigler <fche@elastic.org>
1676 * context.stp (cpu): Clone undocumented cpuid() function.
1678 2006-02-14 Martin Hunt <hunt@redhat.com>
1680 * syscalls.stp: More updates.
1682 2006-02-14 Frank Ch. Eigler <fche@elastic.org>
1684 * queue_stats.stp: New tapset.
1686 2006-02-14 Mark McLoughlin <markmc@redhat.com>
1688 * aux_syscalls.stp: (_sys_open_flag_str): s/O_NDCTTY/O_NOCTTY/
1690 2006-02-14 Martin Hunt <hunt@redhat.com>
1692 * aux_syscalls.stp (_struct_timeval_u): New function.
1693 (_struct_timeval): New function.
1694 (_struct_timespec_u): New function.
1695 (_struct_timespec): New function.
1696 (_struct_itimerval_u): New function:
1697 (_struct_itimerval): New function:
1698 (_signal_name): New function.
1699 (_module_flags_str): Fixed.
1701 * syscalls2.stp (syscall.setitimer): Use new function
1702 _struct_itimerval_u().
1704 * syscalls.stp: Latest version. Many changes.
1706 2006-02-08 Martin Hunt <hunt@redhat.com>
1708 * aux_syscalls.stp(_msync_flag_str): Fix.
1709 (_wait_opt_str): Fix.
1710 * syscalls.stp: Latest.
1712 2006-02-07 Martin Hunt <hunt@redhat.com>
1714 * syscalls.stp: Latest.
1715 * syscalls2.stp: Commented out pciconfig calls. Those
1716 need to go in arch-specific directories.
1718 * aux_syscalls.stp (_access_mode_str): Fix.
1719 (_mmap_flags): New Function.
1720 (_mprotect_prot_str): Fix.
1723 (__fork_flags): New.
1725 2006-02-01 Martin Hunt <hunt@redhat.com>
1727 * syscalls.stp: New syscall file.
1728 * syscall2.stp: More syscalls.
1729 * i686/syscalls.stp: x86-specific calls.
1730 * x86_64/syscalls.stp: x86_64-specific calls.
1732 2006-01-30 Martin Hunt <hunt@redhat.com>
1734 * context.stp (probefunc): New function.
1735 (is_return): New function.
1736 (returnval): New function.
1738 2006-01-15 Frank Ch. Eigler <fche@elastic.org>
1740 * logging.stp: Revert.
1742 2006-01-10 Martin Hunt <hunt@redhat.com>
1744 * logging.stp: Don't set STAP_SESSION_STOPPING.
1745 That it done in _stp_exit().