Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc575627

Browse files
committed
Improve recording of IA64 stack data.
Examination of the results from anole and gharial suggests that we'reonly managing to track the size of one of the two stacks of IA64 machines.Some googling gave the answer: on HPUX11, the register stack is reportedas a page type I don't see in pstat.h on my HPUX10 box. Let's trytesting for that.
1 parentea9c4a1 commitc575627

File tree

1 file changed

+20
-6
lines changed
  • src/backend/storage/ipc

1 file changed

+20
-6
lines changed

‎src/backend/storage/ipc/ipc.c

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ report_stack_size(void)
9494
#if defined(__hpux)
9595
/* HPUX: examine process's memory map with pstat_getprocvm() */
9696
inttargetpid=getpid();
97-
structpst_vm_statusbuf;
98-
intres;
9997
intndx;
10098

10199
for (ndx=0;;ndx++)
102100
{
101+
structpst_vm_statusbuf;
102+
constchar*pagetype;
103+
intres;
104+
103105
res=pstat_getprocvm(&buf,sizeof(buf),targetpid,ndx);
104106
if (res<0)
105107
{
@@ -108,13 +110,25 @@ report_stack_size(void)
108110
}
109111
if (res!=1)
110112
break;
111-
if (buf.pst_type!=PS_STACK)
112-
continue;
113-
fprintf(stderr,"%d: stack addr 0x%lx, length %ld, physical pages %ld\n",
113+
switch (buf.pst_type)
114+
{
115+
casePS_STACK:
116+
pagetype="STACK";
117+
break;
118+
#ifdefPS_RSESTACK
119+
casePS_RSESTACK:
120+
pagetype="REGSTACK";
121+
break;
122+
#endif
123+
default:
124+
continue;
125+
}
126+
fprintf(stderr,"%d: stack addr 0x%lx, length %ld, physical pages %ld, type %s\n",
114127
targetpid,
115128
buf.pst_vaddr,
116129
buf.pst_length,
117-
buf.pst_phys_pages);
130+
buf.pst_phys_pages,
131+
pagetype);
118132
}
119133
#else/* non HPUX */
120134
/* Otherwise: try to use pmap. No error if that doesn't work. */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp