Giter Site home page Giter Site logo

traces's People

Contributors

adamscreenovate avatar mo avatar yotamr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traces's Issues

objdump - no such file

Trying to apply traces on my code, I get failures during linkage.
I get few errors of "no such file" (32 to be exact) of the following:
objdump: '/tmp/ccLK5eao.ltrans0.ltrans.o': No such file

and that is followed by long list of the following messages:

.o (symbol from plugin):(.text+0x0): first defined here
*
.o (symbol from plugin): In function find_name': (.text+0x0): multiple definition ofnull_type

I've installed clang and llvm and they seem to be in place, can you recommend a way to see if it is really installed correctly?
Thanks in advance!

[SOLVED] Undefined reference when compiling demo app

I get this error when trying to compile demo app:

/mnt/space/dev/traces-dev/traces/ccwrap.py g++ -L/mnt/space/dev/traces-dev/traces demo.o ../libtraceuser.a -lrt -L. -o demo
demo.o:demo.cpp:function calculate(calculation_type, int): error: undefined reference to '__static_log_information_start'
demo.o:demo.cpp:function calculate(calculation_type, int): error: undefined reference to '__static_log_information_start'
demo.o:demo.cpp:function calculate(calculation_type, int): error: undefined reference to '__static_log_information_start'
demo.o:demo.cpp:function calculate(calculation_type, int): error: undefined reference to '__static_log_information_start'
libtrace/trace_user.c:70: error: undefined reference to '__type_information_start'
libtrace/trace_user.c:116: error: undefined reference to '__type_information_start'
libtrace/trace_user.c:255: error: undefined reference to '__type_information_start'
libtrace/trace_user.c:261: error: undefined reference to '__static_log_information_end'
collect2: error: ld returned 1 exit status
make: *** [demo] Error 1

Any ideas what's wrong? Traces libraries were compiled fine...

Clang version requirements

It seems that it really has to be exactly 3.0 -

It won't compile with clang 2.7
It won't compile with clang 3.2

I think it's a little restrictive. Either way I'd add a note about it.

demo.o.pp.i doesn't seem to be generated

/home/christer/Source/traces/ccwrap.py g++ -I.. -c -o demo.o demo.cpp
demo.o.pp.i crap
g++ -I.. -E -o demo.o.pp demo.cpp -D __TRACE_INSTRUMENTATION -include /home/chri
ster/Source/traces/trace_lib.h -include /home/christer/Source/traces/trace_user.
h
/usr/local/bin/clang -cc1 -Wno-attributes -fcolor-diagnostics -fgnu-keywords -st
d=gnu++11 -x c++ -fcxx-exceptions demo.o.pp -o demo.o.pp.i -I.. -load /home/chri
ster/Source/traces/trace_instrumentor/trace_instrumentor.so -plugin trace-instru
ment
Traceback (most recent call last):
File "/home/christer/Source/traces/ccwrap.py", line 146, in
sys.exit(main())
File "/home/christer/Source/traces/ccwrap.py", line 143, in main
os.unlink(out_pp_file)
OSError: [Errno 2] No such file or directory: 'demo.o.pp.i'
make: *** [demo.o] Error 1

Search raises an exception

I tried searching for FATAL (S keyboard shortcut) and got it:

root@guyr-ubuntu:~/traces# python interactive_reader/ui.py /mnt/box-ci13/1/mnt/logs/trace.134083499142.dump 

Traceback (most recent call last):
  File "interactive_reader/ui.py", line 518, in <module>
    main()
  File "interactive_reader/ui.py", line 515, in main
    reader_ui.run(sys.argv[1])
  File "interactive_reader/ui.py", line 510, in run
    self.loop.run()
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 170, in run
    self.screen.run_wrapper(self._run)
  File "/usr/lib/pymodules/python2.7/urwid/raw_display.py", line 234, in run_wrapper
    return fn()
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 188, in _run
    self.event_loop.run()
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 498, in run
    self._loop()
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 523, in _loop
    self._watch_files[fd]()
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 234, in _update
    self.process_input(keys)
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 323, in process_input
    self.unhandled_input(k)
  File "/usr/lib/pymodules/python2.7/urwid/main_loop.py", line 350, in unhandled_input
    return self._unhandled_input(input)
  File "interactive_reader/ui.py", line 484, in _handle_input
    if input == 'enter' and self._main_frame.get_focus() == 'footer':
AttributeError: 'Frame' object has no attribute 'get_focus'

Type-aware tracing of structures

I have updated demo.cpp to pass an entire structure to a trace (code attached in the snapshot). However, the output of trace_dumper -o (and of trace_reader) contains an empty string for the 'test' variable. I was expecting to see the struct's fields traced.

Is this a bug in traces? Or am I doing anything wrong?
traces_demo_cpp

Update (2014.05.25)
It seems that the function format_typed_params (trace_parser.c) does not handle TRACE_PARAM_FLAG_RECORD. So, struct-like params are not being formatted in the output.

What is the correct way to trace and inspect structures?

How to enable func enter/leave printing?

The README file says "to produce verbose output showing function entry/leave, use the '-f' parameter".
But what filter should be passed to -f in this case? Or did you mean to write "-d" instead of "-f" because if I pass "-d" to trace_dumper I do get func enter/leave reported.

Building demo fails with undefined symbol

Output: error: unable to load plugin '/home/christer/Source/traces/trace_instrum
entor/trace_instrumentor.so': '/home/christer/Source/traces/trace_instrumentor/t
race_instrumentor.so: undefined symbol: _ZTIN5clang11ASTConsumerE'

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.