Lines Matching defs:sym
431 if (node->ms.sym) {
436 PyLong_FromUnsignedLongLong(node->ms.sym->start));
438 PyLong_FromUnsignedLongLong(node->ms.sym->end));
440 _PyLong_FromLong(node->ms.sym->binding));
442 _PyUnicode_FromStringAndSize(node->ms.sym->name,
443 node->ms.sym->namelen));
444 pydict_set_item_string_decref(pyelem, "sym", pysym);
522 static unsigned long get_offset(struct symbol *sym, struct addr_location *al)
526 if (al->addr < sym->end)
527 offset = al->addr - sym->start;
529 offset = al->addr - al->map->start - sym->start;
534 static int get_symoff(struct symbol *sym, struct addr_location *al,
539 if (!sym || !sym->name[0])
543 return scnprintf(bf, size, "%s", sym->name);
545 offset = get_offset(sym, al);
547 return scnprintf(bf, size, "%s+0x%x", sym->name, offset);
587 get_symoff(al.sym, &al, true, bf, sizeof(bf));
593 get_symoff(al.sym, &al, true, bf, sizeof(bf));
779 if (al->sym) {
781 _PyUnicode_FromString(al->sym->name));
1100 static int python_export_symbol(struct db_export *dbe, struct symbol *sym,
1104 u64 *sym_db_id = symbol__priv(sym);
1111 tuple_set_d64(t, 2, sym->start);
1112 tuple_set_d64(t, 3, sym->end);
1113 tuple_set_s32(t, 4, sym->binding);
1114 tuple_set_string(t, 5, sym->name);
1215 sym_db_id = cp->sym ? *(u64 *)symbol__priv(cp->sym) : 0;
1862 fprintf(ofp, "\n\t\t\tif 'sym' in node:");
1863 fprintf(ofp, "\n\t\t\t\tprint(\"\\t[%%x] %%s\" %% (node['ip'], node['sym']['name']))");