From mboxrd@z Thu Jan 1 00:00:00 1970 From: pierre-marc.fournier@polymtl.ca (Pierre-Marc Fournier) Date: Mon, 15 Feb 2010 01:04:47 -0500 Subject: [ltt-dev] UST - Problems in recording trace on a current process In-Reply-To: <19fa8ef31002101408l3b5eb66bnc062c2785910d63e@mail.gmail.com> References: <19fa8ef31002081349v36a13174m1a031048048fd45c@mail.gmail.com> <4B72D009.2060702@polymtl.ca> <19fa8ef31002100853n189221f3u3015c85afc65db5c@mail.gmail.com> <201002101515.49624.pierre-marc.fournier@polymtl.ca> <19fa8ef31002101408l3b5eb66bnc062c2785910d63e@mail.gmail.com> Message-ID: <20100215010447.riemtxaxus4cgwgw@www.imp.polymtl.ca> Naren a ??crit??: > Hi Pierre > >>> I just commited a quick and dirty fix for this issue. A refactoring of the > ust >>> communication lib is in progress to address this more elegantly. > > Everything is working fine.Finally. With the default markers,I am getting a > trace but in LTTV, i could only see the 6 events that was captured, hence > not getting anything in control flow viewer. I presume, lot many > instrumentations have to be added by me before i get to see any substantial > trace results. > > Thanks a lot for you help. > > However, i made few observations > > 1. In the terminal window, where i gave LD_PRELOAD, i am getting this error > after destroying the trace and closing the traced program > > *root at naren-laptop:/usr/src# LD_PRELOAD=/usr/local/lib/libust.so.0.0.0 > /usr/bin/gimp* > *libust[9868/9869]: Error: cannot find trace! (in do_cmd_put_subbuffer() at > tracectl.c:632)* > *libust[9868/9869]: Error: cannot find trace! (in do_cmd_put_subbuffer() at > tracectl.c:632)* > * > * > 2. In the terminal window where ustd demon is running, i am getting the > following errors > > *ustd[9447/9820]: Error: Buffer overflow (channel=metadata_0), reader > pushed. This channel will not be usable passed this point. (in > consumer_loop() at ustd.c:399)* > *ustd[9447/9881]: Error: unable to parse response to put_subbuffer (in > put_subbuffer() at ustd.c:141)* > *ustd[9447/9881]: Error: unknown error putting subbuffer (channel=ust_0) (in > consumer_loop() at ustd.c:395)* > *ustd[9447/9880]: Error: Buffer overflow (channel=metadata_0), reader > pushed. This channel will not be usable passed this point. (in > consumer_loop() at ustd.c:399)* > * > * Hi Naren, A fix is upcoming for this issue. I will keep you posted. Thanks for reporting. pmf