Git Product home page Git Product logo

Comments (12)

wmi0 avatar wmi0 commented on April 28, 2024

Could you give a reproducible, for example attach the binary and the profile?

from autofdo.

ChenhaoZhang avatar ChenhaoZhang commented on April 28, 2024

Could you give a reproducible, for example attach the binary and the profile?
Yes! But could you provide me an email address since the zipped file of the binary and the profile still excesses the maximum size supported.

from autofdo.

wmi0 avatar wmi0 commented on April 28, 2024

You can send it to [email protected]. Thanks!

from autofdo.

ChenhaoZhang avatar ChenhaoZhang commented on April 28, 2024

You can send it to [email protected]. Thanks!

Sent.

from autofdo.

wmi0 avatar wmi0 commented on April 28, 2024

from autofdo.

rekyyang avatar rekyyang commented on April 28, 2024

I met the same problem, has it been solved?

from autofdo.

rekyyang avatar rekyyang commented on April 28, 2024

I solved it by sampling perf.data using perf record -b -e br_inst_retired.near_taken:pp -p 1 -- sleep 120
and complie with -g option in the first compilation, and remove the -g option in the second compilation

https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html , and search key word autofdo

from autofdo.

grajer avatar grajer commented on April 28, 2024

I also meet this problem, when convert redis profiling data to .gcov. Is there any solution?

from autofdo.

wmi0 avatar wmi0 commented on April 28, 2024

from autofdo.

softrobotYCLi avatar softrobotYCLi commented on April 28, 2024

Hi all, I also meet this problem and solved it by compare with old create_gcov.
little example can recurrence this problem:

#include <iostream>
#include <stdlib.h>
inline int foobar(int a, int b)
{
  if (a < b)
    return a;
  a = rand();
  b = rand();
  return a-b;
}

int bar(int a) {
  a+=rand();
  return a;
}

int foo(int a, int b)
{
  return bar(foobar(a,b));
}

int main()
{
  int a = 1;
  int j = 10000000;
  while (j--)
    a+= foo(rand(),rand());
  std::cout << a << endl;
  return 0;
}

The solution is:

--- a/legacy_addr2line.cc
+++ b/legacy_addr2line.cc
@@ -184,6 +184,9 @@ void Google3Addr2line::GetInlineStack(uint64_t address,
   if (iter == line_map_->begin())
     return;
   --iter;
+  if (iter->second == 0) {
+    return;
+  }
   const LineIdentifier &LI = line_map_->GetLogical(iter->second);
   if (LI.line == 0)
     return;

hope it`s useful ^_^

from autofdo.

wmi0 avatar wmi0 commented on April 28, 2024

Thanks for pointing that out! I somehow dropped that line when I was doing the merge. The suggested fix solves the problem. Will merge it.

from autofdo.

wmi0 avatar wmi0 commented on April 28, 2024

Fix committed: 8d5bf56

from autofdo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.