=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== kcachegrind-20.08.0/libcore/tracedata.h-894- kcachegrind-20.08.0/libcore/tracedata.h:895: bool isValid() { return _addr != Addr(0); } kcachegrind-20.08.0/libcore/tracedata.h-896- ############################################## kcachegrind-20.08.0/libcore/tracedata.h-903- kcachegrind-20.08.0/libcore/tracedata.h:904: Addr addr() const { return _addr; } kcachegrind-20.08.0/libcore/tracedata.h-905- TraceFunction* function() const { return _function; } ############################################## kcachegrind-20.08.0/libcore/tracedata.h-911- // only to be called after default constructor kcachegrind-20.08.0/libcore/tracedata.h:912: void setAddr(const Addr addr) { _addr = addr; } kcachegrind-20.08.0/libcore/tracedata.h-913- void setFunction(TraceFunction* f) { _function = f; } ############################################## kcachegrind-20.08.0/libcore/addr.h-33-public: kcachegrind-20.08.0/libcore/addr.h:34: Addr() { _v=0; } kcachegrind-20.08.0/libcore/addr.h-35- // no "explicit": we want implicit conversion kcachegrind-20.08.0/libcore/addr.h:36: Addr(uint64 v) { _v = v; } kcachegrind-20.08.0/libcore/addr.h-37- ############################################## kcachegrind-20.08.0/libcore/addr.h-55- kcachegrind-20.08.0/libcore/addr.h:56: Addr operator+(int d) const { return Addr(_v + d); } kcachegrind-20.08.0/libcore/addr.h:57: Addr operator-(int d) const { return Addr(_v - d); } kcachegrind-20.08.0/libcore/addr.h-58- kcachegrind-20.08.0/libcore/addr.h-59- // return decremented address until it is a multiple of <a>, a power of 2 kcachegrind-20.08.0/libcore/addr.h:60: Addr alignedDown(int a) { return Addr(_v & ~( ((uint64)a) -1)); } kcachegrind-20.08.0/libcore/addr.h-61- ############################################## kcachegrind-20.08.0/libcore/cachegrindloader.cpp-244- line.stripUInt64(v, false); kcachegrind-20.08.0/libcore/cachegrindloader.cpp:245: newPos.fromAddr = Addr(v); kcachegrind-20.08.0/libcore/cachegrindloader.cpp-246- newPos.toAddr = newPos.fromAddr; ############################################## kcachegrind-20.08.0/libcore/cachegrindloader.cpp-260- line.stripUInt64(v); kcachegrind-20.08.0/libcore/cachegrindloader.cpp:261: newPos.toAddr = Addr(v); kcachegrind-20.08.0/libcore/cachegrindloader.cpp-262- } ############################################## kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1130- if (!currentInstr || kcachegrind-20.08.0/libcore/cachegrindloader.cpp:1131: (currentInstr->addr() != currentPos.fromAddr)) { kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1132- currentInstr = currentFunction->instr(currentPos.fromAddr, ############################################## kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1223- hasLineInfo ? currentPos.fromLine : 0, kcachegrind-20.08.0/libcore/cachegrindloader.cpp:1224: hasAddrInfo ? currentPos.fromAddr : Addr(0), kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1225- partCalling, ############################################## kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1298- hasLineInfo ? targetPos.fromLine : 0, kcachegrind-20.08.0/libcore/cachegrindloader.cpp:1299: hasAddrInfo ? targetPos.fromAddr : Addr(0), kcachegrind-20.08.0/libcore/cachegrindloader.cpp-1300- currentJumpToFunction, ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-992- return QStringLiteral("jump at 0x%1 to 0x%2") kcachegrind-20.08.0/libcore/tracedata.cpp:993: .arg(_instrFrom->addr().toString()) kcachegrind-20.08.0/libcore/tracedata.cpp:994: .arg(_instrTo->addr().toString()); kcachegrind-20.08.0/libcore/tracedata.cpp-995-} ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-1720- qPrintable(fcc->functionSource()->file()->shortName()), kcachegrind-20.08.0/libcore/tracedata.cpp:1721: fcc->line(), qPrintable(fcc->addr().toString()), kcachegrind-20.08.0/libcore/tracedata.cpp-1722- qPrintable(fcc->callCount().pretty())); ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2086- TraceInstrMap::ConstIterator it = _instrMap->constBegin(); kcachegrind-20.08.0/libcore/tracedata.cpp:2087: return (*it).addr(); kcachegrind-20.08.0/libcore/tracedata.cpp-2088-} ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2095- --it; kcachegrind-20.08.0/libcore/tracedata.cpp:2096: return (*it).addr(); kcachegrind-20.08.0/libcore/tracedata.cpp-2097-} ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2102- // address 0 not allowed kcachegrind-20.08.0/libcore/tracedata.cpp:2103: if (addr == Addr(0)) return nullptr; kcachegrind-20.08.0/libcore/tracedata.cpp-2104- ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2116- if (!i.isValid()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2117: i.setAddr(addr); kcachegrind-20.08.0/libcore/tracedata.cpp-2118- i.setFunction(this); ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2544- for(; fc; fc = fc->nextCostOfPartFunction()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2545: if (fc->addr() == 0) continue; kcachegrind-20.08.0/libcore/tracedata.cpp-2546- ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2550- kcachegrind-20.08.0/libcore/tracedata.cpp:2551: if (!i || i->addr() != fc->addr()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2552: i = &(*_instrMap)[fc->addr()]; kcachegrind-20.08.0/libcore/tracedata.cpp-2553- if (!i->isValid()) { kcachegrind-20.08.0/libcore/tracedata.cpp-2554- i->setFunction(this); kcachegrind-20.08.0/libcore/tracedata.cpp:2555: i->setAddr(fc->addr()); kcachegrind-20.08.0/libcore/tracedata.cpp-2556- i->setLine(l); ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2569- for(; fj; fj = fj->nextJumpOfPartFunction()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2570: if (fj->addr() == 0) continue; kcachegrind-20.08.0/libcore/tracedata.cpp-2571- ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2575- kcachegrind-20.08.0/libcore/tracedata.cpp:2576: if (!i || i->addr() != fj->addr()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2577: i = &(*_instrMap)[fj->addr()]; kcachegrind-20.08.0/libcore/tracedata.cpp-2578- if (!i->isValid()) { kcachegrind-20.08.0/libcore/tracedata.cpp-2579- i->setFunction(this); kcachegrind-20.08.0/libcore/tracedata.cpp:2580: i->setAddr(fj->addr()); kcachegrind-20.08.0/libcore/tracedata.cpp-2581- i->setLine(l); ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2584- kcachegrind-20.08.0/libcore/tracedata.cpp:2585: to = fj->targetFunction()->instr(fj->targetAddr(), true); kcachegrind-20.08.0/libcore/tracedata.cpp-2586- ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2600- for(; fcc; fcc = fcc->nextCostOfPartCall()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2601: if (fcc->addr() == 0) continue; kcachegrind-20.08.0/libcore/tracedata.cpp-2602- ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2606- kcachegrind-20.08.0/libcore/tracedata.cpp:2607: if (!i || i->addr() != fcc->addr()) { kcachegrind-20.08.0/libcore/tracedata.cpp:2608: i = &(*_instrMap)[fcc->addr()]; kcachegrind-20.08.0/libcore/tracedata.cpp-2609- if (!i->isValid()) { kcachegrind-20.08.0/libcore/tracedata.cpp-2610- i->setFunction(this); kcachegrind-20.08.0/libcore/tracedata.cpp:2611: i->setAddr(fcc->addr()); kcachegrind-20.08.0/libcore/tracedata.cpp-2612- i->setLine(l); ############################################## kcachegrind-20.08.0/libcore/tracedata.cpp-2624- qPrintable(fcc->functionSource()->file()->shortName()), kcachegrind-20.08.0/libcore/tracedata.cpp:2625: fcc->line(), qPrintable(fcc->addr().toString()), kcachegrind-20.08.0/libcore/tracedata.cpp-2626- qPrintable(fcc->callCount().pretty())); ############################################## kcachegrind-20.08.0/libcore/fixcost.h-72- uint toLine() const { return _pos.toLine; } kcachegrind-20.08.0/libcore/fixcost.h:73: Addr fromAddr() const { return _pos.fromAddr; } kcachegrind-20.08.0/libcore/fixcost.h:74: Addr addr() const { return _pos.fromAddr; } kcachegrind-20.08.0/libcore/fixcost.h:75: Addr toAddr() const { return _pos.toAddr; } kcachegrind-20.08.0/libcore/fixcost.h-76- TraceFunctionSource* functionSource() const { return _functionSource; } ############################################## kcachegrind-20.08.0/libcore/fixcost.h-113- unsigned int line() const { return _line; } kcachegrind-20.08.0/libcore/fixcost.h:114: Addr addr() const { return _addr; } kcachegrind-20.08.0/libcore/fixcost.h-115- SubCost callCount() const { return _cost[_count]; } ############################################## kcachegrind-20.08.0/libcore/fixcost.h-154- unsigned int line() const { return _line; } kcachegrind-20.08.0/libcore/fixcost.h:155: Addr addr() const { return _addr; } kcachegrind-20.08.0/libcore/fixcost.h-156- TraceFunctionSource* source() const { return _source; } ############################################## kcachegrind-20.08.0/libcore/fixcost.h-158- unsigned int targetLine() const { return _targetLine; } kcachegrind-20.08.0/libcore/fixcost.h:159: Addr targetAddr() const { return _targetAddr; } kcachegrind-20.08.0/libcore/fixcost.h-160- TraceFunctionSource* targetSource() const { return _targetSource; } ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-160- .arg(_instrJump->executedCount().pretty()) kcachegrind-20.08.0/libviews/instritem.cpp:161: .arg(_instrJump->instrTo()->addr().toString()); kcachegrind-20.08.0/libviews/instritem.cpp-162- else ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-164- .arg(_instrJump->executedCount().pretty()) kcachegrind-20.08.0/libviews/instritem.cpp:165: .arg(_instrJump->instrTo()->addr().toString()); kcachegrind-20.08.0/libviews/instritem.cpp-166- ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-293- // Two jumps: descending sort according target address kcachegrind-20.08.0/libviews/instritem.cpp:294: return (ii1->_instrJump->instrTo()->addr() < kcachegrind-20.08.0/libviews/instritem.cpp:295: ii2->_instrJump->instrTo()->addr()); kcachegrind-20.08.0/libviews/instritem.cpp-296- } ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-376- TraceInstrJump* instrJump = item->instrJump(); kcachegrind-20.08.0/libviews/instritem.cpp:377: Addr addr = item->addr(); kcachegrind-20.08.0/libviews/instritem.cpp-378- TraceInstrCall* instrCall = item->instrCall(); ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-387- if ((instrJump == jump) && kcachegrind-20.08.0/libviews/instritem.cpp:388: (jump->instrFrom()->addr() == addr)) { kcachegrind-20.08.0/libviews/instritem.cpp-389- ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-391- if (start<0) start = i; kcachegrind-20.08.0/libviews/instritem.cpp:392: if (jump->instrTo()->addr() <= addr) kcachegrind-20.08.0/libviews/instritem.cpp-393- y2 = yy; ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-397- else if (!instrJump && !instrCall && kcachegrind-20.08.0/libviews/instritem.cpp:398: (jump->instrTo()->addr() == addr)) { kcachegrind-20.08.0/libviews/instritem.cpp-399- ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-401- if (end<0) end = i; kcachegrind-20.08.0/libviews/instritem.cpp:402: if (jump->instrFrom()->addr() < addr) kcachegrind-20.08.0/libviews/instritem.cpp-403- y2 = yy; ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-461- kcachegrind-20.08.0/libviews/instritem.cpp:462: if (jump->instrFrom()->addr() == addr) { kcachegrind-20.08.0/libviews/instritem.cpp-463- bool drawUp = true; kcachegrind-20.08.0/libviews/instritem.cpp:464: if (jump->instrTo()->addr() == addr) kcachegrind-20.08.0/libviews/instritem.cpp-465- if (start<0) drawUp=false; kcachegrind-20.08.0/libviews/instritem.cpp:466: if (jump->instrTo()->addr() > addr) drawUp=false; kcachegrind-20.08.0/libviews/instritem.cpp-467- if (drawUp) ############################################## kcachegrind-20.08.0/libviews/instritem.cpp-471- } kcachegrind-20.08.0/libviews/instritem.cpp:472: else if (jump->instrTo()->addr() == addr) { kcachegrind-20.08.0/libviews/instritem.cpp-473- if (end<0) end = i; kcachegrind-20.08.0/libviews/instritem.cpp:474: if (jump->instrFrom()->addr() < addr) kcachegrind-20.08.0/libviews/instritem.cpp-475- p->fillRect( marg + 6*i +1, 0, 2, yy, c); ############################################## kcachegrind-20.08.0/libviews/instritem.h-55- kcachegrind-20.08.0/libviews/instritem.h:56: Addr addr() const { return _addr; } kcachegrind-20.08.0/libviews/instritem.h-57- bool inside() const { return _inside; } ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-84- kcachegrind-20.08.0/libviews/instrview.cpp:85:static Addr parseAddr(char* buf) kcachegrind-20.08.0/libviews/instrview.cpp-86-{ ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-93- int digits = addr.set(buf + pos); kcachegrind-20.08.0/libviews/instrview.cpp:94: if ((digits==0) || (buf[pos+digits] != ':')) return Addr(0); kcachegrind-20.08.0/libviews/instrview.cpp-95- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-483-{ kcachegrind-20.08.0/libviews/instrview.cpp:484: low = ij->instrFrom()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp:485: high = ij->instrTo()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp-486- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-504- // jump ends come before jump starts kcachegrind-20.08.0/libviews/instrview.cpp:505: bool low1IsEnd = (addr1Low == ij1->instrTo()->addr()); kcachegrind-20.08.0/libviews/instrview.cpp:506: bool low2IsEnd = (addr2Low == ij2->instrTo()->addr()); kcachegrind-20.08.0/libviews/instrview.cpp-507- if (low1IsEnd && !low2IsEnd) return true; ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-523- // jump ends come before jump starts kcachegrind-20.08.0/libviews/instrview.cpp:524: bool high1IsEnd = (addr1High == ij1->instrTo()->addr()); kcachegrind-20.08.0/libviews/instrview.cpp:525: bool high2IsEnd = (addr2High == ij2->instrTo()->addr()); kcachegrind-20.08.0/libviews/instrview.cpp-526- if (high1IsEnd && !high2IsEnd) return true; ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-643- if (it == itEnd) break; kcachegrind-20.08.0/libviews/instrview.cpp:644: if (!(*it).addr().isInRange( (*tmpIt).addr(),10000) ) break; kcachegrind-20.08.0/libviews/instrview.cpp-645- } ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-687- TraceInstrJump* ij= *_lowListIter; kcachegrind-20.08.0/libviews/instrview.cpp:688: lowAddr = ij->instrFrom()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp:689: if (ij->instrTo()->addr() < lowAddr) kcachegrind-20.08.0/libviews/instrview.cpp:690: lowAddr = ij->instrTo()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp-691- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-694- // if target is downwards but we draw no source, break kcachegrind-20.08.0/libviews/instrview.cpp:695: if (ignoreFrom && (lowAddr < ij->instrTo()->addr())) break; kcachegrind-20.08.0/libviews/instrview.cpp-696- // if source is downward but we draw no target, break kcachegrind-20.08.0/libviews/instrview.cpp:697: if (ignoreTo && (lowAddr < ij->instrFrom()->addr())) break; kcachegrind-20.08.0/libviews/instrview.cpp-698- // if this is another jump start, break ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-727- TraceInstrJump* ij= *_highListIter; kcachegrind-20.08.0/libviews/instrview.cpp:728: highAddr = ij->instrFrom()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp:729: if (ij->instrTo()->addr() > highAddr) { kcachegrind-20.08.0/libviews/instrview.cpp:730: highAddr = ij->instrTo()->addr(); kcachegrind-20.08.0/libviews/instrview.cpp-731- if (ignoreTo) break; ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-821- --tmpIt; kcachegrind-20.08.0/libviews/instrview.cpp:822: nextCostAddr = (*it).addr(); kcachegrind-20.08.0/libviews/instrview.cpp-823- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-828- kcachegrind-20.08.0/libviews/instrview.cpp:829: dumpStartAddr = (nextCostAddr<20) ? Addr(0) : nextCostAddr -20; kcachegrind-20.08.0/libviews/instrview.cpp:830: dumpEndAddr = (*tmpIt).addr() +20; kcachegrind-20.08.0/libviews/instrview.cpp-831- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-915- kcachegrind-20.08.0/libviews/instrview.cpp:916: objAddr = parseAddr(buf); kcachegrind-20.08.0/libviews/instrview.cpp-917- if ((objAddr<dumpStartAddr) || (objAddr>dumpEndAddr)) ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-927- (nextCostAddr > 0) && kcachegrind-20.08.0/libviews/instrview.cpp:928: ((objAddr == Addr(0)) || (objAddr >= nextCostAddr)) ) { kcachegrind-20.08.0/libviews/instrview.cpp-929- needCostAddr = false; ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-938- costAddr = nextCostAddr; kcachegrind-20.08.0/libviews/instrview.cpp:939: nextCostAddr = (it == itEnd) ? Addr(0) : (*it).addr(); kcachegrind-20.08.0/libviews/instrview.cpp-940- if (isArm) ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-1118- ii = (InstrItem*)item1; kcachegrind-20.08.0/libviews/instrview.cpp:1119: updateJumpArray(ii->addr(), ii, true, false); kcachegrind-20.08.0/libviews/instrview.cpp-1120- ############################################## kcachegrind-20.08.0/libviews/instrview.cpp-1124- if (ii2->instrJump()) kcachegrind-20.08.0/libviews/instrview.cpp:1125: updateJumpArray(ii->addr(), ii2, false, true); kcachegrind-20.08.0/libviews/instrview.cpp-1126- else ############################################## kcachegrind-20.08.0/converters/dprof2calltree-156- my $caller_name = $function_info{$specifier}->{'name'} || '???'; kcachegrind-20.08.0/converters/dprof2calltree:157: my $include = find_include($caller_package); kcachegrind-20.08.0/converters/dprof2calltree-158- $output .= "ob=\n"; kcachegrind-20.08.0/converters/dprof2calltree:159: $output .= sprintf "fl=%s\n", find_include($caller_package); kcachegrind-20.08.0/converters/dprof2calltree-160- $output .= sprintf "fn=%s\n", $caller_name; ############################################## kcachegrind-20.08.0/converters/dprof2calltree-165- $output .= sprintf "cfn=%s\n", $function_info{$child_specifier}->{'name'}; kcachegrind-20.08.0/converters/dprof2calltree:166: $output .= sprintf "cfi=%s\n", find_include($function_info{$child_specifier}->{'package'}); kcachegrind-20.08.0/converters/dprof2calltree-167- $output .= "calls=1\n";