Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing oprofile: sre_constants.error: redefinition of group name 'samples' as group 3; was group 1 #28

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. opreport -cgf | ./gprof2dot.py -f oprofile 

What is the expected output? What do you see instead?
I get the following traceback: 

  File "./gprof2dot.py", line 2069, in <module>
    Main().main()
  File "./gprof2dot.py", line 1994, in main
    self.profile = parser.parse()
  File "./gprof2dot.py", line 1067, in parse
    self.parse_header()
  File "./gprof2dot.py", line 1113, in parse_header
    self.entry_re = re.compile(entry_re)
  File "/usr/lib/python2.6/re.py", line 190, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.6/re.py", line 245, in _compile
    raise error, v # invalid expression
sre_constants.error: redefinition of group name 'samples' as group 3; was
group 1

What version of the product are you using? On what operating system?

Updated to revision 296,
Python 2.6.4 on Ubuntu Karmic
oprofile 0.9.4+cvs20090629-2.1ubuntu2 


Original issue reported on code.google.com by sneumann...@gmail.com on 16 Dec 2009 at 4:18

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

Hi,

This happens because the oprofile output has multiple events: CPU_CLK_UNHALTED, 
and 
LOAD_BLOCK. gprof2dot doesn't support parsing multiple events. I have plans to 
add 
that support, but until then I'll try to fix the crash and get the first event 
parsed 
correctly. 

Original comment by Jose.R.F...@gmail.com on 31 Jan 2010 at 3:09

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Contributor Author

Fix pushed.

Note that the karmic.oprofile you attached has no call stack information so the 
graph 
generated by gprof2dot will appear as a bunch of isolated nodes. You'll need to 
re-
acquire the data with --callgraph=xxx option.

Original comment by Jose.R.F...@gmail.com on 31 Jan 2010 at 10:46

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant