Lines Matching defs:offset
301 /* Indirect call can use a non-rip register and offset: callq *0x8(%rbx).
374 * The first is a jump to an offset inside the same function,
376 * offset in the cpp_named_operator2name@@base function.
423 ops->target.offset = target.addr - start;
437 if (!ops->target.addr || ops->target.offset < 0)
462 ops->target.offset);
877 unsigned offset, unsigned cycles,
888 ch[offset].num_aggr++;
889 ch[offset].cycles_aggr += cycles;
891 if (cycles > ch[offset].cycles_max)
892 ch[offset].cycles_max = cycles;
894 if (ch[offset].cycles_min) {
895 if (cycles && cycles < ch[offset].cycles_min)
896 ch[offset].cycles_min = cycles;
898 ch[offset].cycles_min = cycles;
900 if (!have_start && ch[offset].have_start)
902 if (ch[offset].num) {
903 if (have_start && (!ch[offset].have_start ||
904 ch[offset].start > start)) {
905 ch[offset].have_start = 0;
906 ch[offset].cycles = 0;
907 ch[offset].num = 0;
908 if (ch[offset].reset < 0xffff)
909 ch[offset].reset++;
911 ch[offset].start < start)
915 if (ch[offset].num < NUM_SPARKS)
916 ch[offset].cycles_spark[ch[offset].num] = cycles;
918 ch[offset].have_start = have_start;
919 ch[offset].start = start;
920 ch[offset].cycles += cycles;
921 ch[offset].num++;
930 unsigned offset;
942 offset = addr - sym->start;
950 h->addr[offset].nr_samples++;
952 h->addr[offset].period += sample->period;
957 h->addr[offset].nr_samples, h->addr[offset].period);
1017 unsigned offset;
1033 offset = addr - sym->start;
1036 offset, cycles,
1077 u64 offset;
1079 for (offset = start; offset <= end; offset++) {
1080 if (notes->offsets[offset])
1090 u64 offset;
1100 for (offset = start; offset <= end; offset++) {
1101 struct annotation_line *al = notes->offsets[offset];
1119 s64 offset;
1130 for (offset = size - 1; offset >= 0; --offset) {
1133 ch = ¬es->src->cycles_hist[offset];
1138 annotation__count_and_fill(notes, ch->start, offset, ch);
1139 al = notes->offsets[offset];
1207 s64 offset;
1217 al->offset = args->offset;
1264 if (args->offset != -1) {
1366 if (pos->offset >= 0)
1456 s64 offset = dl->al.offset;
1457 const u64 addr = start + offset;
1476 if (al->offset != -1) {
1581 * <offset> <name> <ops.raw>
1583 * The offset will be a relative offset from the start of the symbol and -1
1595 s64 line_ip, offset = -1;
1612 offset = line_ip - start;
1614 offset = -1;
1619 args->offset = offset;
1632 dl->ops.target.offset = dl->ops.target.addr -
1931 args->offset = -1;
1943 args->offset = pc;
1978 args->offset = -1;
2237 s64 offset, s64 end)
2242 while (offset < end) {
2243 hits += sym_hist->addr[offset].nr_samples;
2244 period += sym_hist->addr[offset].period;
2245 ++offset;
2274 if (al->offset == -1)
2278 end = next ? next->offset : len;
2290 calc_percent(sym_hist, hists, data, al->offset, end);
2474 u64 len = symbol__size(sym), offset;
2476 for (offset = 0; offset < len; ++offset)
2477 if (h->addr[offset].nr_samples != 0)
2479 sym->start + offset, h->addr[offset].nr_samples);
2489 if (line->offset != -1)
2490 return scnprintf(bf, sizeof(bf), "%" PRIx64, start + line->offset);
2706 int len = symbol__size(sym), offset;
2709 for (offset = 0; offset < len; ++offset) {
2710 h->addr[offset].nr_samples = h->addr[offset].nr_samples * 7 / 8;
2711 h->nr_samples += h->addr[offset].nr_samples;
2729 if (dl->al.offset == -1)
2732 printed = fprintf(fp, "%#" PRIx64 " %s", dl->al.offset, dl->ins.name);
2756 !disasm_line__has_local_offset(dl) || dl->ops.target.offset < 0 ||
2757 dl->ops.target.offset >= (s64)symbol__size(sym))
2765 u64 offset, size = symbol__size(sym);
2771 for (offset = 0; offset < size; ++offset) {
2772 struct annotation_line *al = notes->offsets[offset];
2780 al = notes->offsets[dl->ops.target.offset];
2784 * have to adjust to the previous offset?
2808 if (al->offset != -1) {
2817 if (al->offset < size)
2818 notes->offsets[al->offset] = al;
2839 if (al->offset == -1)
2910 al->path = get_srcline(map__dso(map), notes->start + al->offset, NULL,
2911 false, true, notes->start + al->offset);
3032 fwd = dl->ops.target.offset > dl->al.offset;
3085 if (first_line && (al->offset == -1 || percent_max == 0.0)) {
3093 if (al->offset != -1 && percent_max != 0.0) {
3174 else if (al->offset == -1) {
3182 u64 addr = al->offset;