Lines Matching defs:top
206 struct tostruct *top, *prevtop;
240 top = &p->tos[toindex];
241 top->selfpc = selfpc;
242 top->count = 1;
243 top->link = 0;
246 top = &p->tos[toindex];
247 if (top->selfpc == selfpc) {
251 top->count++;
256 * top points to what we are looking at,
257 * prevtop points to previous top.
261 if (top->link == 0) {
263 * top is end of the chain and none of the chain
264 * had top->selfpc == selfpc.
272 top = &p->tos[toindex];
273 top->selfpc = selfpc;
274 top->count = 1;
275 top->link = *frompcindex;
282 prevtop = top;
283 top = &p->tos[top->link];
284 if (top->selfpc == selfpc) {
290 top->count++;
292 prevtop->link = top->link;
293 top->link = *frompcindex;