Lines Matching refs:top
68 struct tostruct *top, *prevtop;
182 top = &p->tos[toindex];
183 top->selfpc = selfpc;
184 top->count = 1;
185 top->link = 0;
188 top = &p->tos[toindex];
189 if (top->selfpc == selfpc) {
193 top->count++;
198 * top points to what we are looking at,
199 * prevtop points to previous top.
203 if (top->link == 0) {
205 * top is end of the chain and none of the chain
206 * had top->selfpc == selfpc.
214 top = &p->tos[toindex];
215 top->selfpc = selfpc;
216 top->count = 1;
217 top->link = *frompcindex;
224 prevtop = top;
225 top = &p->tos[top->link];
226 if (top->selfpc == selfpc) {
232 top->count++;
234 prevtop->link = top->link;
235 top->link = *frompcindex;