Re: [lttng-dev] Regarding CtfTmfTrace reader in TMF and LTTng's new trace

2014-10-20 Thread Shariyar


  Yes, it is working in TMF views. The index folders are shown separately
in TMF and contents of the new  trace format are also complete.

I looked at the TmfStateSystemAnalysisModule class, and in particular
StateSystemEventRequest class in it at the end. I understand this class
StateSystemEventRequest but how is this ITmfStateProvider  passed to the
constructor StateSystemEventRequest(ITmfState
 Provider sp). I don't see any direct implementation of ITmfStateProvider
there.

Just to give a bit of context, in my scenario, I am interested in directly
reading traces from the hard disk without using the views in TMF. If there
are many traces in the hard disk, my program reads them one by one, perform
its analysis on them, and closes them. My program would pass the path of
the trace folder to a class implementing trace reader  and would take the
contents (Events) one by one from that class.

Thanks,
Shariyar



Date: Mon, 20 Oct 2014 10:37:26 -0400
 From: Genevi?ve Bastien gbastien+lt...@versatic.net
 To: lttng-dev@lists.lttng.org
 Subject: Re: [lttng-dev] Regarding CtfTmfTrace reader in TMF and
 LTTng's new trace format
 Message-ID: 54451e26.4090...@versatic.net
 Content-Type: text/plain; charset=iso-8859-1

 Hi Shariyar,

 Can your trace be read all right if you import it in TMF (Trace Compass)
 and open it normally in it? Do all events appear in the events table?
 There were changes to improve the CTF reading part recently and somebody
 reported a bug with traces taken on ARM where events are not read
 correctly, but the bug is not due to the index files.

 If the trace is read correctly by TMF, may I suggest that you use a
 TmfEventRequest instead of your own iterator to read the trace events.
 This is the preferred way for now, most analysis do that and you don't
 have to bother about trace types, iterators, etc. For an example, see
 the class TmfStateSystemAnalysisModule, at the end of the file is the
 event request class and the build() method from the class that uses it.

 Genevi?ve


 On 14-10-17 11:31 AM, Shariyar wrote:
  Hi,
 
  I am trying to read the traces  generated in the latest format by
  LTTng--i.e.,  a trace having an index folder (with index files) and
  the files for every channel. I am reading these type of traces in my
  Java program by using the CtfTmfTrace class that exists in TMF. I have
  been using this class and its associated classes (e.g., CtfIterator
  and CtfTmfEvent) to successfully read the traces in previous trace
  format of LTTng (i.e., the trace with only files for channels and no
  index folder/files).
 
   Now, I cannot read the latest trace format with these classes. In
  fact, I am only able to read 10-20 events from the latest trace
  format.  These events are namely power_cpu_idle, exit_syscall, and
  sys_ioctl. Can you  kindly tell me which classes to use to read both
  kind of trace formats; old ones and the new ones?
 
  I have also pasted below my current source code to read LTTng traces.
 
  /**
   * Constructor to initialize the trace
   * @param filePath file Name
   * @throws TmfTraceException An exception during trace reading
   */
  public CTFSystemCallIterator(String filePath) throws
  TmfTraceException {
  fTrace = new CtfTmfTrace();
  fTrace.initTrace(null, filePath, CtfTmfEvent.class);
  fTraceIterator = fTrace.createIterator();
  }
 
  /**
   * Moves Iterator to the next event, and returns true if the iterator
   * can advance or false if the iterator cannot advance
   **/
  @Override
  public boolean advance() {
  boolean isAdvance = true;
  fSyscall = ; //$NON-NLS-1$
  do {
  CtfTmfEvent event = fTraceIterator.getCurrentEvent();
  System.out.println(event);
  fSyscall = handleSysEntryEvent(event);
  isAdvance = fTraceIterator.advance();
  } while (fSyscall.isEmpty()  isAdvance);
 
  if (!isAdvance) {
  fIsDispose = true;
  fTrace.dispose();
  }
 
  return isAdvance;
 
  }
 
  Thanks,
  Shariyar
 
 
  ___
  lttng-dev mailing list
  lttng-dev@lists.lttng.org
  http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://lists.lttng.org/pipermail/lttng-dev/attachments/20141020/d05b31bc/attachment.html
 

 --

 Subject: Digest Footer

 ___
 lttng-dev mailing list
 lttng-dev@lists.lttng.org
 http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


 --

 End of lttng-dev Digest, Vol 78, Issue 22
 *

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] Regarding CtfTmfTrace reader in TMF and LTTng's new trace

2014-10-20 Thread Shariyar
Hi Genevive,
I have found the sollution. Actually, I have replaced the CtfEvent and
CtfIterator by ITmfEvent and ITmfContext. This allows me to read the both
the latest and old format. The sample code is attached below, in case if
some one comes across the same problem.

Best regards,
Shariyar










































*private String fSyscall;private CtfTmfTrace fTrace;private
ITmfContext fCtxt;/** * Constructor to initialize the
trace * @param filePath file Name * @throws TmfTraceException An
exception during trace reading */public
CTFSystemCallIterator(String filePath) throws TmfTraceException {
fTrace = new CtfTmfTrace();fTrace.initTrace(null, filePath,
CtfTmfEvent.class);fCtxt=fTrace.seekEvent(0);
//fTraceIterator = fTrace.createIterator(); // don't use CtfIterator
}/** * Moves Iterator to the next event, and returns true if the
iterator * can advance or false if the iterator cannot advance
**/@Overridepublic boolean advance() {boolean isAdvance =
true;fSyscall = ; //$NON-NLS-1$ITmfEvent event;
do{if ((event=fTrace.getNext(fCtxt))!=null){fSyscall =
handleSysEntryEvent(event);//returns the sys call (entry) event
}elseisAdvance=false;} while
(fSyscall.isEmpty()  isAdvance==true);if
(!isAdvance) close();return isAdvance;}*
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] Regarding CtfTmfTrace reader in TMF and LTTng's new trace format

2014-10-17 Thread Shariyar
Hi,

I am trying to read the traces  generated in the latest format by
LTTng--i.e.,  a trace having an index folder (with index files) and the
files for every channel. I am reading these type of traces in my Java
program by using the CtfTmfTrace class that exists in TMF. I have been
using this class and its associated classes (e.g., CtfIterator
and CtfTmfEvent) to successfully read the traces in previous trace format
of LTTng (i.e., the trace with only files for channels and no index
folder/files).

 Now, I cannot read the latest trace format with these classes. In fact, I
am only able to read 10-20 events from the latest trace format.  These
events are namely power_cpu_idle, exit_syscall, and sys_ioctl. Can you
 kindly tell me which classes to use to read both kind of trace formats;
old ones and the new ones?

I have also pasted below my current source code to read LTTng traces.

/**
 * Constructor to initialize the trace
 * @param filePath file Name
 * @throws TmfTraceException An exception during trace reading
 */
public CTFSystemCallIterator(String filePath) throws TmfTraceException {
fTrace = new CtfTmfTrace();
fTrace.initTrace(null, filePath, CtfTmfEvent.class);
fTraceIterator = fTrace.createIterator();
}

/**
 * Moves Iterator to the next event, and returns true if the iterator
 * can advance or false if the iterator cannot advance
 **/
@Override
public boolean advance() {
boolean isAdvance = true;
fSyscall = ; //$NON-NLS-1$
do {
CtfTmfEvent event = fTraceIterator.getCurrentEvent();
System.out.println(event);
fSyscall = handleSysEntryEvent(event);
isAdvance = fTraceIterator.advance();
} while (fSyscall.isEmpty()  isAdvance);

if (!isAdvance) {
fIsDispose = true;
fTrace.dispose();
}

return isAdvance;

}

Thanks,
Shariyar
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] LTTng not generating trace contents

2014-07-07 Thread Shariyar
No it didn't install correctly.It is generating a crash report and
lttng-module-dkms exists in it too.


Regards,
Shariyar


On Mon, Jul 7, 2014 at 2:04 PM, Alexandre Montplaisir 
alexmon...@voxpopuli.im wrote:

  Hi,

 Could you just do
 $ sudo apt-get install --reinstall lttng-modules-dkms

 and check in the output if you have any errors, or if it really installs
 successfully?

 Maybe Ubuntu's patches already trickled down to 12.04 and you might be
 hitting https://bugs.lttng.org/issues/814


 Thanks,
 Alexandre



 On 07/07/2014 01:43 PM, Shariyar wrote:

  lttng --version,
 lttng (LTTng Trace Control) 2.4.1 - Époque Opaque

  lttng-sessiond --version
 2.4.1


 I removed all LTTng packages from the system by manually searching in dpkg
 and reinstalled it as follows:
 sudo apt-get install lttng-tools lttng-modules-dkms babeltrace

 The ppa in the system is: http://ppa.launchpad.net/lttng/ppa/ubuntu

 Now, I get the following error:
 sudo lttng list -k
 Error: Unable to list kernel events: Kernel tracer not available
 Error: Command error

 I have encountered this problem on two different systems running Ubuntu
 12.04, after the update of system and LTTng

 Regards,
 Shariyar


 On Mon, Jul 7, 2014 at 11:42 AM, Thibault, Daniel 
 daniel.thiba...@drdc-rddc.gc.ca wrote:


  --
 Date: Sun, 6 Jul 2014 18:49:51 -0400
 From: Shariyar syed.shari...@gmail.com syed.shari...@gmail.com

  I am having a problem in generating a kernel trace using the latest

  LTTng on Ubuntu 12.04.

  It was working fine previously but when I updated LTTng it stopped

  generating the trace contents. I did an uninstall and reinstall but it
 didn't work either.
 --

Please define what you mean by the latest LTTng.  What are the
 versions?  ($ lttng --version, $ lttng-sessiond --version)

 Daniel U. Thibault
 Protection des systèmes et contremesures (PSC) | Systems Protection 
 Countermeasures (SPC)
 Cyber sécurité pour les missions essentielles (CME) | Mission Critical
 Cyber Security (MCCS)
 RDDC - Centre de recherches de Valcartier | DRDC - Valcartier Research
 Centre
 2459 route de la Bravoure
 Québec QC  G3J 1X5
 CANADA
 Vox : (418) 844-4000 x4245
 Fax : (418) 844-4538
 NAC : 918V QSDJ http://www.travelgis.com/map.asp?addr=918V%20QSDJ 
 http://www.travelgis.com/map.asp?addr=918V%20QSDJ
 Gouvernement du Canada | Government of 
 Canadahttp://www.valcartier.drdc-rddc.gc.ca/ 
 http://www.valcartier.drdc-rddc.gc.ca/



 ___
 lttng-dev mailing 
 listlttng-dev@lists.lttng.orghttp://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] LTTng not generating trace contents

2014-07-06 Thread Shariyar
Hi,

I am having a problem in generating a kernel trace using the latest LTTng
on Ubuntu 12.04. It was working fine previously but when I updated LTTng it
stopped generating the trace contents. I did an uninstall and reinstall but
it didn't work either.

In particular, I am able to create a session, list all kernel events, start
a trace and stop a trace. My user is also in the tracing group. However,
there are no contents in the trace files generated for every CPU in the
system. Initially, the Babeltrace and the TMF both gave errors and when I
explored the trace folder I found out that they are empty files.The
metadata and index files do show some contents; however, nothing exists in
the channelx_x files.

What would be wrong? Please let me know.

Regards,
Shariyar
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] liblttng-ust-cyg-profile.so not found

2014-01-29 Thread Shariyar
Download and install the following UST packages but first remove the
already installed versions. For other LTTng packages, you can   reinstall
from your previous repository or from here.

http://packages.debian.org/sid/liblttng-ust-ctl2
http://packages.debian.org/sid/liblttng-ust0
http://packages.debian.org/unstable/liblttng-ust-dev


On Wed, Jan 29, 2014 at 9:26 AM, Thibault, Daniel 
daniel.thiba...@drdc-rddc.gc.ca wrote:

 --
 Date: Tue, 28 Jan 2014 11:37:20 -0500
 From: Shariyar syed.shari...@gmail.com

  I am trying to collect function entry and exit points in a trace. I
  have followed the instructions written on the following man page:
 
 http://manpages.ubuntu.com/manpages/trusty/man3/lttng-ust-cyg-profile.3.html
 .
 
  In my system, UST tracepoint tracing  is working fine and I am able to
 collect traces with the statically typed tracepoints in the code.
  However, there is no liblttng-ust-cyg-profile.so in my system and I get
 an error when I execute the following:
 
   *LD_PRELOAD=liblttng-ust-cyg-profile.so* appname
 --
 Date: Tue, 28 Jan 2014 12:29:43 -0500
 From: Suchakrapani Datt Sharma suchakrapani.sha...@polymtl.ca

  Check if the liblttng-ust-cyg-profile.so is present in system using
 'locate'. On my system its in /usr/lib64
  Then give the absolute path -
 *LD_PRELOAD=/usr/lib64/liblttng-ust-cyg-profile.so* appname
 --
 Date: Tue, 28 Jan 2014 12:32:14 -0500
 From: Shariyar syed.shari...@gmail.com

  It is not present in the system even after reinstalling ust libs from
 PPA.
  I am working on Ubuntu 12.04.1 LTS, 64 bit.
 --
 Date: Tue, 28 Jan 2014 12:45:34 -0500
 From: Alexandre Montplaisir alexmon...@voxpopuli.im

  On Ubuntu/Debian, there is no lib64, it's /usr/lib/x86_64-linux-gnu/
 
  If you installed UST from the distro package, it should be at:
  /usr/lib/x86_64-linux-gnu/liblttng-ust-cyg-profile.so.0
 
  (the .so symlink is only installed by the -dev package)
 
  If you installed from source, it would be at:
  /usr/local/lib/liblttng-ust-cyg-profile.so
 
  Quick tip: you can use:
  dpkg -L liblttng-ust0
  to list the files installed by a package.
 --
 Date: Tue, 28 Jan 2014 16:19:09 -0500
 From: Shariyar syed.shari...@gmail.com

  dpkg -L liblttng-ust0 gives the following; i.e., no
 liblttng-ust-cyg-profile.so
 
  /usr/share/man/man3/lttng-ust-cyg-profile.3.gz

Which package did you install, and whence came it?

 Daniel U. Thibault
 Protection des systèmes et contremesures (PSC) | Systems Protection 
 Countermeasures (SPC)
 Cyber sécurité pour les missions essentielles (CME) | Mission Critical
 Cyber Security (MCCS)
 R  D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence RD
 Canada - Valcartier (DRDC Valcartier)
 2459 route de la Bravoure
 Québec QC  G3J 1X5
 CANADA
 Vox : (418) 844-4000 x4245
 Fax : (418) 844-4538
 NAC : 918V QSDJ http://www.travelgis.com/map.asp?addr=918V%20QSDJ
 Gouvernement du Canada | Government of Canada
 http://www.valcartier.drdc-rddc.gc.ca/

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] liblttng-ust-cyg-profile.so not found

2014-01-28 Thread Shariyar
Hi,

I am trying to collect function entry and exit points in a trace. I  have
followed the instructions written on the following man page:
http://manpages.ubuntu.com/manpages/trusty/man3/lttng-ust-cyg-profile.3.html.


In my system, UST tracepoint tracing  is working fine and I am able to
collect traces with the statically typed tracepoints in the code. However,
there is no liblttng-ust-cyg-profile.so in my system and I get an error
when I execute the following:

   *LD_PRELOAD=liblttng-ust-cyg-profile.so* appname

Please let me know how to get it to work?

Thanks,
Shariyar
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] liblttng-ust-cyg-profile.so not found

2014-01-28 Thread Shariyar
It is not present in the system even after reinstalling ust libs from PPA.
I am working on Ubuntu 12.04.1 LTS, 64 bit.

Regards,
Shariyar


On Tue, Jan 28, 2014 at 12:29 PM, Suchakrapani Datt Sharma 
suchakrapani.sha...@polymtl.ca wrote:

 Check if the liblttng-ust-cyg-profile.so is present in system using
 'locate'. On
 my system its in /usr/lib64

 Then give the absolute path -

 *LD_PRELOAD=/usr/lib64/liblttng-ust-cyg-profile.so* appname

 This works for me.

 --
 Suchakra

 Quoting Shariyar syed.shari...@gmail.com:

  Hi,
 
  I am trying to collect function entry and exit points in a trace. I  have
  followed the instructions written on the following man page:
 
 http://manpages.ubuntu.com/manpages/trusty/man3/lttng-ust-cyg-profile.3.html
 .
 
 
  In my system, UST tracepoint tracing  is working fine and I am able to
  collect traces with the statically typed tracepoints in the code.
 However,
  there is no liblttng-ust-cyg-profile.so in my system and I get an error
  when I execute the following:
 
 *LD_PRELOAD=liblttng-ust-cyg-profile.so* appname
 
  Please let me know how to get it to work?
 
  Thanks,
  Shariyar
 



___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] liblttng-ust-cyg-profile.so not found

2014-01-28 Thread Shariyar
 dpkg -L liblttng-ust0 gives the following; i.e., no
liblttng-ust-cyg-profile.so

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/liblttng-ust0
/usr/share/doc/liblttng-ust0/changelog.gz
/usr/share/doc/liblttng-ust0/copyright
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/lttng-ust.3.gz
/usr/share/man/man3/lttng-ust-cyg-profile.3.gz
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-fork.so.0.0.0
/usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-libc-wrapper.so.0.0.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-ctl.so.2.0.0
/usr/lib/x86_64-linux-gnu/liblttng-ust.so.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-libc-wrapper.so.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-fork.so.0
/usr/lib/x86_64-linux-gnu/liblttng-ust-ctl.so.2



On Tue, Jan 28, 2014 at 12:45 PM, Alexandre Montplaisir 
alexmon...@voxpopuli.im wrote:

 On Ubuntu/Debian, there is no lib64, it's /usr/lib/x86_64-linux-gnu/

 If you installed UST from the distro package, it should be at:
 /usr/lib/x86_64-linux-gnu/liblttng-ust-cyg-profile.so.0

 (the .so symlink is only installed by the -dev package)

 If you installed from source, it would be at:
 /usr/local/lib/liblttng-ust-cyg-profile.so


 Quick tip: you can use:
  dpkg -L liblttng-ust0
 to list the files installed by a package.


 Cheers,
 Alexandre


 On 14-01-28 12:32 PM, Shariyar wrote:
  It is not present in the system even after reinstalling ust libs from
 PPA.
  I am working on Ubuntu 12.04.1 LTS, 64 bit.
 
  Regards,
  Shariyar
 
 
  On Tue, Jan 28, 2014 at 12:29 PM, Suchakrapani Datt Sharma 
  suchakrapani.sha...@polymtl.ca wrote:
 
  Check if the liblttng-ust-cyg-profile.so is present in system using
  'locate'. On
  my system its in /usr/lib64
 
  Then give the absolute path -
 
  *LD_PRELOAD=/usr/lib64/liblttng-ust-cyg-profile.so* appname
 
  This works for me.
 
  --
  Suchakra
 
  Quoting Shariyar syed.shari...@gmail.com:
 
  Hi,
 
  I am trying to collect function entry and exit points in a trace. I
  have
  followed the instructions written on the following man page:
 
 
 http://manpages.ubuntu.com/manpages/trusty/man3/lttng-ust-cyg-profile.3.html
  .
 
  In my system, UST tracepoint tracing  is working fine and I am able to
  collect traces with the statically typed tracepoints in the code.
  However,
  there is no liblttng-ust-cyg-profile.so in my system and I get an error
  when I execute the following:
 
 *LD_PRELOAD=liblttng-ust-cyg-profile.so* appname
 
  Please let me know how to get it to work?
 
  Thanks,
  Shariyar
 
 
 
 
 
  ___
  lttng-dev mailing list
  lttng-dev@lists.lttng.org
  http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] liblttng-ust-cyg-profile.so not found

2014-01-28 Thread Shariyar
Okay. I have found the solution: I used another Debain repository to
download and install all the packages.

I am wondering, is there any tool/script that matches function addresses
with the symbol names from nm, and generates a new CTF file?

Regards,
Shariyar


On Tue, Jan 28, 2014 at 4:19 PM, Shariyar syed.shari...@gmail.com wrote:


  dpkg -L liblttng-ust0 gives the following; i.e., no
 liblttng-ust-cyg-profile.so

 /.
 /usr
 /usr/share
 /usr/share/doc
 /usr/share/doc/liblttng-ust0
 /usr/share/doc/liblttng-ust0/changelog.gz
 /usr/share/doc/liblttng-ust0/copyright
 /usr/share/man
 /usr/share/man/man3
 /usr/share/man/man3/lttng-ust.3.gz
 /usr/share/man/man3/lttng-ust-cyg-profile.3.gz
 /usr/lib
 /usr/lib/x86_64-linux-gnu
 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0.0.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-fork.so.0.0.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0.0.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-libc-wrapper.so.0.0.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-ctl.so.2.0.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-libc-wrapper.so.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-fork.so.0
 /usr/lib/x86_64-linux-gnu/liblttng-ust-ctl.so.2



 On Tue, Jan 28, 2014 at 12:45 PM, Alexandre Montplaisir 
 alexmon...@voxpopuli.im wrote:

 On Ubuntu/Debian, there is no lib64, it's /usr/lib/x86_64-linux-gnu/

 If you installed UST from the distro package, it should be at:
 /usr/lib/x86_64-linux-gnu/liblttng-ust-cyg-profile.so.0

 (the .so symlink is only installed by the -dev package)

 If you installed from source, it would be at:
 /usr/local/lib/liblttng-ust-cyg-profile.so


 Quick tip: you can use:
  dpkg -L liblttng-ust0
 to list the files installed by a package.


 Cheers,
 Alexandre


 On 14-01-28 12:32 PM, Shariyar wrote:
  It is not present in the system even after reinstalling ust libs from
 PPA.
  I am working on Ubuntu 12.04.1 LTS, 64 bit.
 
  Regards,
  Shariyar
 
 
  On Tue, Jan 28, 2014 at 12:29 PM, Suchakrapani Datt Sharma 
  suchakrapani.sha...@polymtl.ca wrote:
 
  Check if the liblttng-ust-cyg-profile.so is present in system using
  'locate'. On
  my system its in /usr/lib64
 
  Then give the absolute path -
 
  *LD_PRELOAD=/usr/lib64/liblttng-ust-cyg-profile.so* appname
 
  This works for me.
 
  --
  Suchakra
 
  Quoting Shariyar syed.shari...@gmail.com:
 
  Hi,
 
  I am trying to collect function entry and exit points in a trace. I
  have
  followed the instructions written on the following man page:
 
 
 http://manpages.ubuntu.com/manpages/trusty/man3/lttng-ust-cyg-profile.3.html
  .
 
  In my system, UST tracepoint tracing  is working fine and I am able to
  collect traces with the statically typed tracepoints in the code.
  However,
  there is no liblttng-ust-cyg-profile.so in my system and I get an
 error
  when I execute the following:
 
 *LD_PRELOAD=liblttng-ust-cyg-profile.so* appname
 
  Please let me know how to get it to work?
 
  Thanks,
  Shariyar
 
 
 
 
 
  ___
  lttng-dev mailing list
  lttng-dev@lists.lttng.org
  http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] What are sys calls starting with compat?

2013-12-10 Thread Shariyar
What does sys_unknown mean and why doe it occur? Does it mean that LTTng
can not find the name of system call?

Regards,
Shariyar
--

Message: 2
Date: Tue, 10 Dec 2013 15:31:19 + (UTC)
From: Mathieu Desnoyers mathieu.desnoy...@efficios.com
To: Daniel Thibault daniel.thiba...@drdc-rddc.gc.ca
Cc: lttng-dev@lists.lttng.org
Subject: Re: [lttng-dev] What are sys calls starting with compat?
Message-ID:
1571110803.82672.1386689479225.javamail.zim...@efficios.com
Content-Type: text/plain; charset=utf-8

- Original Message -
 From: Daniel Thibault daniel.thiba...@drdc-rddc.gc.ca
 To: lttng-dev@lists.lttng.org
 Cc: Mathieu Desnoyers mathieu.desnoy...@efficios.com
 Sent: Tuesday, December 10, 2013 9:57:21 AM
 Subject: Re: [lttng-dev] What are sys calls starting with compat?

  Date: Tue, 10 Dec 2013 01:55:48 + (UTC)
 
  System calls with compat prefix are for e.g. 32-bit processes running
on
  a 64-bit kernel:
  those processes are using a different system call table (ia32 for Intel)
  than 64-bit processes,
  and therefore those system calls are named compat_* by LTTng.
 
  Mathieu

I presume the LTTng event names will also be prefixed with compat_.

Yes.

  For
instance, compat_sys_rmdir.

Yes.

  Or would it be sys_compat_rmdir?

No.

  And
what of the exit_syscall and sys_unknown events?

exit_syscall has no compat prefix as I recall.

compat_sys_unknown.

Thanks,

Mathieu
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] What are sys calls starting with compat?

2013-12-06 Thread Shariyar
Can someone kindly explain the difference between system calls starting
with compat prefix and regular system calls?

 Compat system calls do not appear in the system call table:
http://syscalls.kernelgrok.com/. However, I did found them in the source
code of Linux.

Thanks,
Shariyar
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [lttng-dev] Extracting System Call IDs By Using TMF

2013-11-30 Thread Shariyar
Hi Matthew:

In that case I need to create a map myself.

I  was looking for the system call ids for the following reasons:

1. In LTTng 1.0, there were several occasions when only the system call id
was found in a trace but not the names. If such is the case with LTTng 2.0,
then my concern is  that it would be better to extract ids.

2. Trained models need to be stored in database and ids will take lesser
sapce as the model grows with time.

Regards,
Shariyar



Message: 1
Date: Fri, 29 Nov 2013 10:39:54 -0500
From: Matthew Khouzam matthew.khou...@ericsson.com
To: lttng-dev@lists.lttng.org
Subject: Re: [lttng-dev] Extracting System Call IDs By Using TMF
Message-ID: 5298b54a.5080...@ericsson.com
Content-Type: text/plain; charset=ISO-8859-1

Hi Shariyar,

I would like to know what is the need for the syscall id? I looked at
kernel events, and they store the system call name, not the id? Is it
for performance reasons, or is there some functionality that can be
achieved from a call ID that cannot from a name?
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


[lttng-dev] Extracting System Call IDs By Using TMF

2013-11-28 Thread Shariyar
Hi,

I need information on how to extract system call ids from a kernel level
trace by using TMF.
For example, a sample code to iterate through a kernel trace in CTF format
is given below.

In this code, I am able to extract the system call name and its return
value. However, from the *event.getContent()* function, I could not get the
system call id for the corresponding system call name.

Kindly let me know, how to extract the system call id? By system call id I
mean the actual system call id assigned by Linux to a system call as shown
on this site: http://syscalls.kernelgrok.com/

///Code
//
public void readTrace(){

CtfIterator  traceIterator=trace.createIterator();

while (traceIterator.advance()){

CtfTmfEvent event = traceIterator.getCurrentEvent();
ITmfEventField content = event.getContent();
String eventName=event.getEventName();

ITmfEventField sys_exit=content.getField(ret);

if (sys_exit != null)
System.out.println(Ret: +sys_exit.getValue());

if (eventName.startsWith(LttngStrings.SYSCALL_PREFIX)
||
eventName.startsWith(LttngStrings.COMPAT_SYSCALL_PREFIX)) {

System.out.println(eventName);
 }
}

}
///Code
//

Regards,
Shariyar
___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev