Lines Matching defs:index
425 unsigned long index;
465 if ((void *)rec >= (void *)&pg->records[pg->index]) {
604 pg->index = 0;
767 if (stat->pages->index == PROFILES_PER_PAGE) {
773 rec = &stat->pages->records[stat->pages->index++];
1118 int index;
1540 for (_____i = 0; _____i < pg->index; _____i++) { \
1570 if (pg->index == 0 ||
1572 start >= (pg->records[pg->index - 1].ip + MCOUNT_INSN_SIZE))
1574 rec = bsearch(&key, pg->records, pg->index,
2716 int index;
2738 iter->index = 0;
2741 while (iter->pg && !iter->pg->index)
2758 iter->index++;
2760 if (iter->index >= iter->pg->index) {
2762 iter->index = 0;
2765 while (iter->pg && !iter->pg->index)
2783 return &iter->pg->records[iter->index];
3210 for (i = 0; i < pg->index; i++) {
3568 if (iter->idx >= iter->pg->index) {
4203 long index;
4207 /* The index starts at 1 */
4208 if (kstrtoul(func_g->search, 0, &index) || --index < 0)
4212 if (pg->index <= index) {
4213 index -= pg->index;
4217 rec = &pg->records[index];
6553 end_offset = (pg->index+1) * sizeof(pg->records[0]);
6561 rec = &pg->records[pg->index++];
6710 for (i = 0; i < pg->index; i++) {
6797 ftrace_update_tot_cnt -= pg->index;
7167 start >= (pg->records[pg->index - 1].ip + MCOUNT_INSN_SIZE))
7170 rec = bsearch(&key, pg->records, pg->index,
7182 pg->index--;
7184 if (!pg->index) {
7194 (pg->index - (rec - pg->records)) * sizeof(*rec));