Lines Matching refs:node
441 struct callchain_cursor_node *node;
442 node = callchain_cursor_current(cursor);
443 if (!node)
452 PyLong_FromUnsignedLongLong(node->ip));
454 if (node->ms.sym) {
459 PyLong_FromUnsignedLongLong(node->ms.sym->start));
461 PyLong_FromUnsignedLongLong(node->ms.sym->end));
463 _PyLong_FromLong(node->ms.sym->binding));
465 _PyUnicode_FromStringAndSize(node->ms.sym->name,
466 node->ms.sym->namelen));
469 if (node->ms.map) {
470 struct map *map = node->ms.map;
475 node_al.addr = map__map_ip(map, node->ip);
477 offset = get_offset(node->ms.sym, &node_al);
484 if (node->srcline && strcmp(":0", node->srcline)) {
487 _PyUnicode_FromString(node->srcline));
491 if (node->ms.map) {
492 const char *dsoname = get_dsoname(node->ms.map);
2157 fprintf(ofp, "\t\tfor node in common_callchain:");
2158 fprintf(ofp, "\n\t\t\tif 'sym' in node:");
2160 fprintf(ofp, "\n\t\t\t\t\tnode['ip'], node['sym']['name'],");
2161 fprintf(ofp, "\n\t\t\t\t\t\"+0x{:x}\".format(node['sym_off']) if 'sym_off' in node else \"\",");
2162 fprintf(ofp, "\n\t\t\t\t\t\" ({})\".format(node['dso']) if 'dso' in node else \"\",");
2163 fprintf(ofp, "\n\t\t\t\t\t\" \" + node['sym_srcline'] if 'sym_srcline' in node else \"\"))");
2165 fprintf(ofp, "\n\t\t\t\tprint(\"\t[%%x]\" %% (node['ip']))\n\n");