Lines Matching refs:bufp
111 char buf[1024], *bufp, *endbuf; local
135 bufp = buf; endbuf = buf+sizeof(buf);
136 bufp = trstrcpy(bufp, tritoa(oldaddr ? VLONG(oldaddr) : 0L, 0), ':');
137 bufp = trstrcpy(bufp, tritoa(newaddr ? VLONG(newaddr) : 0L, 0), ':');
138 bufp = trstrcpy(bufp, tritoa((Vmulong_t)size, 1), ':');
139 bufp = trstrcpy(bufp, tritoa((Vmulong_t)align, 1), ':');
140 bufp = trstrcpy(bufp, tritoa(VLONG(vm), 0), ':');
142 bufp = trstrcpy(bufp, "b", ':');
144 bufp = trstrcpy(bufp, "l", ':');
146 bufp = trstrcpy(bufp, "p", ':');
148 bufp = trstrcpy(bufp, "s", ':');
150 bufp = trstrcpy(bufp, "d", ':');
151 else bufp = trstrcpy(bufp, "u", ':');
155 { if((bufp + strlen(file) + SLOP) >= endbuf)
157 for(f = bufp + strlen(file); f > file; --f)
163 bufp = trstrcpy(bufp, "file", '=');
164 n = endbuf - bufp - SLOP - 3;
168 bufp = trstrcpy(bufp, "..", '.');
170 bufp = trstrcpy(bufp, file, ',');
171 bufp = trstrcpy(bufp, "line", '=');
172 bufp = trstrcpy(bufp, tritoa((Vmulong_t)line,1), 0);
177 *bufp++ = ',';
178 bufp = trstrcpy(bufp, "func", '=');
180 bufp = trstrcpy(bufp, (const char*)func, 0);
182 bufp = trstrcpy(bufp, tritoa((Vmulong_t)func,0), 0);
187 *bufp++ = ':';
189 *bufp++ = '\n';
190 *bufp = '\0';
192 write(Trfile,buf,(bufp-buf));
206 char buf[1024], *bufp; local
208 bufp = buf;
209 bufp = trstrcpy(bufp, "vmalloc", ':');
212 bufp = trstrcpy(bufp, s1, ':');
214 bufp = trstrcpy(bufp, tritoa(n1, 1), ':');
218 bufp = trstrcpy(bufp, s2, ':');
220 bufp = trstrcpy(bufp, tritoa(n2, 0), ':');
222 bufp = trstrcpy(bufp, tritoa((long)getpid(), 1), ':');
223 *bufp++ = '\n';
224 write(2,buf,(bufp-buf));