You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(20) |
2
(10) |
3
(18) |
4
(10) |
5
(16) |
6
(8) |
|
7
|
8
(17) |
9
(22) |
10
(10) |
11
(9) |
12
(21) |
13
(15) |
|
14
(10) |
15
(11) |
16
(9) |
17
(13) |
18
(9) |
19
(11) |
20
(11) |
|
21
(23) |
22
(20) |
23
(10) |
24
(11) |
25
(20) |
26
(20) |
27
(21) |
|
28
(8) |
29
(7) |
30
(7) |
31
(9) |
|
|
|
|
From: <sv...@va...> - 2006-05-17 20:18:14
|
Author: tom Date: 2006-05-17 14:53:23 +0100 (Wed, 17 May 2006) New Revision: 5904 Log: Sync system call lists with 2.6.17-rc4 kernel source. Modified: trunk/coregrind/vki_unistd-amd64-linux.h trunk/coregrind/vki_unistd-ppc32-linux.h trunk/coregrind/vki_unistd-ppc64-linux.h trunk/coregrind/vki_unistd-x86-linux.h /usr/local/etc/subversion//commit-email.pl: `/usr/local/bin/svnlook diff = /home/svn/repos/valgrind -r 5904' failed with this output: Modified: trunk/coregrind/vki_unistd-amd64-linux.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/vki_unistd-amd64-linux.h 2006-05-15 19:27:56 UTC (rev= 5903) +++ trunk/coregrind/vki_unistd-amd64-linux.h 2006-05-17 13:53:23 UTC (rev= 5904) @@ -349,5 +349,11 @@ #define __NR_pselect6 270 #define __NR_ppoll 271 #define __NR_unshare 272 +#define __NR_set_robust_list 273 +#define __NR_get_robust_list 274 +#define __NR_splice 275 +#define __NR_tee 276 +#define __NR_sync_file_range 277 +#define __NR_vmsplice 278 =20 #endif /* __VKI_UNISTD_AMD64_LINUX_H */ Modified: trunk/coregrind/vki_unistd-ppc32-linux.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/vki_unistd-ppc32-linux.h 2006-05-15 19:27:56 UTC (rev= 5903) +++ trunk/coregrind/vki_unistd-ppc32-linux.h 2006-05-17 13:53:23 UTC (rev= 5904) @@ -319,7 +319,23 @@ #define __NR_pselect6 280 #define __NR_ppoll 281 #define __NR_unshare 282 +#define __NR_splice 283 +#define __NR_tee 284 +#define __NR_vmsplice 285 +#define __NR_openat 286 +#define __NR_mkdirat 287 +#define __NR_mknodat 288 +#define __NR_fchownat 289 +#define __NR_futimesat 290 +#define __NR_fstatat64 291 +#define __NR_unlinkat 292 +#define __NR_renameat 293 +#define __NR_linkat 294 +#define __NR_symlinkat 295 +#define __NR_readlinkat 296 +#define __NR_fchmodat 297 +#define __NR_faccessat 298 =20 -#define __NR_syscalls 283 +#define __NR_syscalls 299 =20 #endif /* __VKI_UNISTD_PPC32_LINUX_H */ Modified: trunk/coregrind/vki_unistd-ppc64-linux.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/vki_unistd-ppc64-linux.h 2006-05-15 19:27:56 UTC (rev= 5903) +++ trunk/coregrind/vki_unistd-ppc64-linux.h 2006-05-17 13:53:23 UTC (rev= 5904) @@ -307,6 +307,27 @@ #define __NR_inotify_init 275 #define __NR_inotify_add_watch 276 #define __NR_inotify_rm_watch 277 +#define __NR_spu_run 278 +#define __NR_spu_create 279 +#define __NR_pselect6 280 +#define __NR_ppoll 281 +#define __NR_unshare 282 +#define __NR_splice 283 +#define __NR_tee 284 +#define __NR_vmsplice 285 +#define __NR_openat 286 +#define __NR_mkdirat 287 +#define __NR_mknodat 288 +#define __NR_fchownat 289 +#define __NR_futimesat 290 +#define __NR_newfstatat 291 +#define __NR_unlinkat 292 +#define __NR_renameat 293 +#define __NR_linkat 294 +#define __NR_symlinkat 295 +#define __NR_readlinkat 296 +#define __NR_fchmodat 297 +#define __NR_faccessat 298 =20 =20 #endif /* __VKI_UNISTD_PPC64_LINUX_H */ Modified: trunk/coregrind/vki_unistd-x86-linux.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/vki_unistd-x86-linux.h 2006-05-15 19:27:56 UTC (rev 5= 903) +++ trunk/coregrind/vki_unistd-x86-linux.h 2006-05-17 13:53:23 UTC (rev 5= 904) @@ -340,5 +340,11 @@ #define __NR_pselect6 308 #define __NR_ppoll 309 #define __NR_unshare 310 +#define __NR_set_robust_list 311 +#define __NR_get_robust_list 312 +#define __NR_splice 313 +#define __NR_sync_file_range 314 +#define __NR_tee 315 +#define __NR_vmsplice 316 =20 #endif /* __VKI_UNISTD_X86_LINUX_H */ svnlook: Can't open directory '/tmp/svnlook.7': Not a directory |
|
From: <sv...@va...> - 2006-05-17 20:18:14
|
Author: tom
Date: 2006-05-17 15:24:12 +0100 (Wed, 17 May 2006)
New Revision: 5905
Log:
Implement the set_robust_list and get_robust_list system calls.
Modified:
trunk/coregrind/m_syswrap/priv_syswrap-linux.h
trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
trunk/coregrind/m_syswrap/syswrap-linux.c
trunk/coregrind/m_syswrap/syswrap-x86-linux.c
trunk/include/vki-linux.h
/usr/local/etc/subversion//commit-email.pl: `/usr/local/bin/svnlook diff =
/home/svn/repos/valgrind -r 5905' failed with this output:
Modified: trunk/coregrind/m_syswrap/priv_syswrap-linux.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/priv_syswrap-linux.h 2006-05-17 13:53:23 UT=
C (rev 5904)
+++ trunk/coregrind/m_syswrap/priv_syswrap-linux.h 2006-05-17 14:24:12 UT=
C (rev 5905)
@@ -74,6 +74,8 @@
DECL_TEMPLATE(linux, sys_sendfile);
DECL_TEMPLATE(linux, sys_sendfile64);
DECL_TEMPLATE(linux, sys_futex);
+DECL_TEMPLATE(linux, sys_set_robust_list);
+DECL_TEMPLATE(linux, sys_get_robust_list);
DECL_TEMPLATE(linux, sys_pselect6);
DECL_TEMPLATE(linux, sys_ppoll);
=20
Modified: trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2006-05-17 13:53:23 U=
TC (rev 5904)
+++ trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2006-05-17 14:24:12 U=
TC (rev 5905)
@@ -1328,6 +1328,8 @@
// LINX_(__NR_pselect6, sys_ni_syscall), // 270
// LINXY(__NR_ppoll, sys_ni_syscall), // 271
// LINX_(__NR_unshare, sys_unshare), // 272
+ LINX_(__NR_set_robust_list, sys_set_robust_list), // 273
+ LINXY(__NR_get_robust_list, sys_get_robust_list), // 274
};
=20
const UInt ML_(syscall_table_size) =3D=20
Modified: trunk/coregrind/m_syswrap/syswrap-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-linux.c 2006-05-17 13:53:23 UTC (re=
v 5904)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c 2006-05-17 14:24:12 UTC (re=
v 5905)
@@ -799,6 +799,37 @@
}
}
=20
+PRE(sys_set_robust_list)
+{
+ PRINT("sys_set_robust_list ( %p, %d )", ARG1,ARG2);
+ PRE_REG_READ2(long, "set_robust_list",=20
+ struct vki_robust_list_head *, head, vki_size_t, len);
+
+ /* Just check the robust_list_head structure is readable - don't
+ try and chase the list as the kernel will only read it when
+ the thread exits so the current contents is irrelevant. */
+ if (ARG1 !=3D 0)
+ PRE_MEM_READ("set_robust_list(head)", ARG1, ARG2);
+}
+
+PRE(sys_get_robust_list)
+{
+ PRINT("sys_get_robust_list ( %d, %p, %d )", ARG1,ARG2,ARG3);
+ PRE_REG_READ3(long, "get_robust_list",
+ int, pid,
+ struct vki_robust_list_head **, head_ptr,
+ vki_size_t *, len_ptr);
+ PRE_MEM_WRITE("get_robust_list(head_ptr)",
+ ARG2, sizeof(struct vki_robust_list_head *));
+ PRE_MEM_WRITE("get_robust_list(len_ptr)",
+ ARG3, sizeof(struct vki_size_t *));
+}
+POST(sys_get_robust_list)
+{
+ POST_MEM_WRITE(ARG2, sizeof(struct vki_robust_list_head *));
+ POST_MEM_WRITE(ARG3, sizeof(struct vki_size_t *));
+}
+
PRE(sys_pselect6)
{
*flags |=3D SfMayBlock;
Modified: trunk/coregrind/m_syswrap/syswrap-x86-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2006-05-17 13:53:23 UTC=
(rev 5904)
+++ trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2006-05-17 14:24:12 UTC=
(rev 5905)
@@ -2172,6 +2172,8 @@
LINXY(__NR_ppoll, sys_ppoll), // 309
=20
// LINX_(__NR_unshare, sys_unshare), // 310
+ LINX_(__NR_set_robust_list, sys_set_robust_list), // 311
+ LINXY(__NR_get_robust_list, sys_get_robust_list), // 312
};
=20
const UInt ML_(syscall_table_size) =3D=20
Modified: trunk/include/vki-linux.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/vki-linux.h 2006-05-17 13:53:23 UTC (rev 5904)
+++ trunk/include/vki-linux.h 2006-05-17 14:24:12 UTC (rev 5905)
@@ -1126,6 +1126,37 @@
#define VKI_FUTEX_REQUEUE (3)
#define VKI_FUTEX_CMP_REQUEUE (4)
=20
+struct vki_robust_list {
+ struct vki_robust_list __user *next;
+};
+
+struct vki_robust_list_head {
+ /*
+ * The head of the list. Points back to itself if empty:
+ */
+ struct vki_robust_list list;
+
+ /*
+ * This relative offset is set by user-space, it gives the kernel
+ * the relative position of the futex field to examine. This way
+ * we keep userspace flexible, to freely shape its data-structure,
+ * without hardcoding any particular offset into the kernel:
+ */
+ long futex_offset;
+
+ /*
+ * The death of the thread may race with userspace setting
+ * up a lock's links. So to handle this race, userspace first
+ * sets this field to the address of the to-be-taken lock,
+ * then does the lock acquire, and then adds itself to the
+ * list, and then clears this field. Hence the kernel will
+ * always have full knowledge of all locks that the thread
+ * _might_ have taken. We check the owner TID in any case,
+ * so only truly owned locks will be handled.
+ */
+ struct vki_robust_list __user *list_op_pending;
+};
+
//----------------------------------------------------------------------
// From linux-2.6.8.1/include/linux/errno.h
//----------------------------------------------------------------------
svnlook: Can't open directory '/tmp/svnlook.8': Not a directory
|
|
From: Nicholas N. <nj...@cs...> - 2006-05-17 16:17:00
|
On Wed, 17 May 2006, T. Senthil Nathan wrote: > Dear Team, > Following is the bug report and reply from > Mr.Nicholas Nethercote.With respect to that, I would > like to get help from your team for getting the exact > stack usage of an application. > > The stack are getting measured in massif option only > when there are some heap operations > malloc/calloc/free). But I would like to register the > stack values used when any function is called/returned > and present the actual picture of peak stack usage. > > Please suggest me what and where are the modification > required for it to achieve this. Kindly do the needful > as soon as possible. You need to register a handler for the "new_mem_stack" and "die_mem_stack" events, which are called every time the stack grows/shrinks. See memcheck/mc_main.c for an example -- it uses VG_(track_new_mem_stack)() and VG_(track_die_mem_stack)() to register the handlers. See include/pub_tool_tooliface.h for more details about the core/tool interface. You could do a census (hp_census) every time these are called, but that would be very expensive. You could instead pull the stack-measuring part of hp_census() into a separate function and just call that. Even that might be overkill. If you program doesn't have multiple stacks, you could just use the sizes passed to new_mem_stack/die_mem_stack to track the stack size. Hope this helps. Nick |
|
From: <js...@ac...> - 2006-05-17 15:42:45
|
Nightly build on minnie ( SuSE 10.0, ppc32 ) started at 2006-05-17 02:00:02 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 206 tests, 12 stderr failures, 6 stdout failures, 0 posttest failures == memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/leakotron (stdout) memcheck/tests/mempool (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/sigaltstack (stderr) memcheck/tests/stack_changes (stdout) memcheck/tests/stack_changes (stderr) memcheck/tests/xml1 (stderr) none/tests/faultstatus (stderr) none/tests/mremap (stderr) none/tests/ppc32/jm-fp (stdout) none/tests/ppc32/jm-fp (stderr) none/tests/ppc32/round (stdout) none/tests/ppc32/round (stderr) none/tests/ppc32/test_fx (stdout) none/tests/ppc32/test_fx (stderr) none/tests/ppc32/test_gx (stdout) |
|
From: T. S. N. <tse...@ya...> - 2006-05-17 14:56:28
|
Dear Team,
Following is the bug report and reply from
Mr.Nicholas Nethercote.With respect to that, I would
like to get help from your team for getting the exact
stack usage of an application.
The stack are getting measured in massif option only
when there are some heap operations
malloc/calloc/free). But I would like to register the
stack values used when any function is called/returned
and present the actual picture of peak stack usage.
Please suggest me what and where are the modification
required for it to achieve this. Kindly do the needful
as soon as possible.
Thanking you,
T.Senthil Nathan.
BUG REPORT :
Dear Team,
I am trying to write a small program to find stack
utilization. The program is as follows.
void main()
{
sleep(10);
sleep(10);
}
The above program will have change in stack usage when
sleep is called twice.
The program is compiled by the following command "gcc
-g test.c -o test"
The valgrind command is executed to check the stack
usge by the following command
valgrind --tool=massif --heap=no --heap-admin=no test
From the .hp file generated I could find only 2 sample
one at MARK 0 with stack value 0, and the other one at
MARK 21004(End of the program) with value 0. The stack
used by the sleep are not registered.
If the same program is modified by the following, I
could get some stack value in between. The values are
MARK 0.0 - stacks 0 , MARK 10907.0 - stacks 1724,
MARK 20913 - stacks 1724, MARK 21012 - stacks 0.
void main()
{
sleep(10);
malloc(10);
sleep(10);
malloc(10);
}
Most Probably the trigger to which the stack values
are identified is heap operations(malloc/calloc/free).
But to find the peak usage of stack or to track the
stack usage this may not be good enough.
I would like to register the stack values used when
any function is called/returned and present the actual
picture of peak stack usage.
Please let me know a solution for this problem. Kindly
do the needful.
Thanking you,
T.Senthil Nathan
------- Additional Comment #1 From Nicholas Nethercote
2006-05-15 18:03 -------
You are right that heap allocations are the trigger
for memory measurements.
Massif wasn't designed to measure stack usage
accurately. If you want this measurement you'll have
to modify Massif yourself to do it. It is definitely
possible, but not trivial to do so. You could contact
the developer's list if you need some advice on how to
go about this.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
|
From: Tom H. <th...@cy...> - 2006-05-17 05:24:12
|
Nightly build on aston ( x86_64, Fedora Core 3 ) started at 2006-05-17 03:55:30 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 263 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/xml1 (stderr) none/tests/amd64/faultstatus (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-05-17 02:57:58
|
Nightly build on ford ( i686, Fedora Core 4 ) started at 2006-05-17 03:25:06 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 237 tests, 7 stderr failures, 0 stdout failures, 0 posttest failures == memcheck/tests/leak-tree (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: <js...@ac...> - 2006-05-17 02:57:56
|
Nightly build on g5 ( YDL 4.0, ppc970 ) started at 2006-05-17 04:40:00 CEST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 212 tests, 6 stderr failures, 3 stdout failures, 0 posttest failures == memcheck/tests/deep_templates (stdout) memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/leakotron (stdout) memcheck/tests/pointer-trace (stderr) none/tests/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) none/tests/mremap (stderr) none/tests/ppc32/mftocrf (stdout) |
|
From: Tom H. <to...@co...> - 2006-05-17 02:47:14
|
Nightly build on dunsmere ( athlon, Fedora Core 5 ) started at 2006-05-17 03:30:04 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 239 tests, 28 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/mempool (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/xml1 (stderr) callgrind/tests/threads (stderr) none/tests/manythreads (stderr) none/tests/mq (stderr) none/tests/pth_atfork1 (stderr) none/tests/pth_blockedsig (stderr) none/tests/pth_cancel1 (stderr) none/tests/pth_cancel2 (stderr) none/tests/pth_cvsimple (stderr) none/tests/pth_empty (stderr) none/tests/pth_exit (stderr) none/tests/pth_exit2 (stderr) none/tests/pth_mutexspeed (stderr) none/tests/pth_once (stderr) none/tests/pth_rwlock (stderr) none/tests/pth_stackalign (stderr) none/tests/res_search (stdout) none/tests/res_search (stderr) none/tests/semlimit (stderr) none/tests/thread-exits (stderr) none/tests/threaded-fork (stderr) none/tests/threadederrno (stderr) none/tests/tls (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-05-17 02:34:44
|
Nightly build on alvis ( i686, Red Hat 7.3 ) started at 2006-05-17 03:15:05 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 238 tests, 21 stderr failures, 0 stdout failures, 0 posttest failures == memcheck/tests/addressable (stderr) memcheck/tests/badjump (stderr) memcheck/tests/describe-block (stderr) memcheck/tests/erringfds (stderr) memcheck/tests/leak-0 (stderr) memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-regroot (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/match-overrun (stderr) memcheck/tests/mempool (stderr) memcheck/tests/partial_load_dflt (stderr) memcheck/tests/partial_load_ok (stderr) memcheck/tests/partiallydefinedeq (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/sigkill (stderr) memcheck/tests/stack_changes (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) memcheck/tests/xml1 (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-05-17 02:27:22
|
Nightly build on dellow ( x86_64, Fedora Core 5 ) started at 2006-05-17 03:10:03 BST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 263 tests, 27 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/xml1 (stderr) callgrind/tests/threads (stderr) none/tests/amd64/faultstatus (stderr) none/tests/manythreads (stderr) none/tests/mq (stderr) none/tests/pth_atfork1 (stderr) none/tests/pth_blockedsig (stderr) none/tests/pth_cancel1 (stderr) none/tests/pth_cancel2 (stderr) none/tests/pth_cvsimple (stderr) none/tests/pth_empty (stderr) none/tests/pth_exit (stderr) none/tests/pth_exit2 (stderr) none/tests/pth_mutexspeed (stderr) none/tests/pth_once (stderr) none/tests/pth_rwlock (stderr) none/tests/pth_stackalign (stderr) none/tests/res_search (stderr) none/tests/semlimit (stderr) none/tests/thread-exits (stderr) none/tests/threaded-fork (stderr) none/tests/threadederrno (stderr) none/tests/tls (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2006-05-17 02:22:38
|
Nightly build on gill ( x86_64, Fedora Core 2 ) started at 2006-05-17 03:00:02 BST Results differ from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 263 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/amd64/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) ================================================= == Results from 24 hours ago == ================================================= Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 263 tests, 7 stderr failures, 2 stdout failures, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/amd64/faultstatus (stderr) none/tests/fdleak_fcntl (stderr) none/tests/tls (stdout) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) ================================================= == Difference between 24 hours ago and now == ================================================= *** old.short Wed May 17 03:07:23 2006 --- new.short Wed May 17 03:22:29 2006 *************** *** 8,10 **** ! == 263 tests, 7 stderr failures, 2 stdout failures, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) --- 8,10 ---- ! == 263 tests, 7 stderr failures, 1 stdout failure, 0 posttest failures == memcheck/tests/amd64/sse_memory (stdout) *************** *** 15,17 **** none/tests/fdleak_fcntl (stderr) - none/tests/tls (stdout) none/tests/x86/faultstatus (stderr) --- 15,16 ---- |
|
From: <js...@ac...> - 2006-05-17 01:26:11
|
Nightly build on phoenix ( SuSE 10.0 ) started at 2006-05-17 03:30:01 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 237 tests, 6 stderr failures, 0 stdout failures, 0 posttest failures == memcheck/tests/leak-tree (stderr) memcheck/tests/stack_switch (stderr) memcheck/tests/x86/scalar (stderr) memcheck/tests/x86/scalar_supp (stderr) none/tests/x86/faultstatus (stderr) none/tests/x86/int (stderr) |