Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #603

could someone guide me regarding ftrace for kernel debugging?

X-Received by 10.182.19.34 with SMTP id b2mr6946985obe.17.1396258900600; Mon, 31 Mar 2014 02:41:40 -0700 (PDT)
X-Received by 10.140.18.208 with SMTP id 74mr120772qgf.31.1396258900572; Mon, 31 Mar 2014 02:41:40 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ur14no1038573igb.0!news-out.google.com!bw18ni26157qab.1!nntp.google.com!hw13no10319232qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.os.linux.development.system
Date Mon, 31 Mar 2014 02:41:40 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=194.39.218.10; posting-account=G4DY9woAAADWin5XDmz8-HFVlPo2ZzCn
NNTP-Posting-Host 194.39.218.10
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <3e7a625a-ee9c-4edc-b4a2-b879d3fc2bdc@googlegroups.com> (permalink)
Subject could someone guide me regarding ftrace for kernel debugging?
From Hemanth Venkatappa <hemanthvenkatappa@gmail.com>
Injection-Date Mon, 31 Mar 2014 09:41:40 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.os.linux.development.system:603

Show key headers only | View raw


Client and server - Client is sending data to the server via socket and server (embedded pc target with real time linux) is receives the data. When the server receives data via the socket, the interrupt takes place in kernel and kernel stops what it is doing and starts executing the newly arrived data from the socket. I want to measure the time at which the interrupt occured and later I want to store it in a file (or it could be somwhere). But, finally I want to send the time value back to the client.

Could someone guide me in this ? example : If I am running a small program and it is printing linux then how to trace w.r.t ftrace ??

I know about ftrace i.e. tracing_on

I dont know about trace_marker i.e writing to trace buffer.

If i want to write the timestamp to buffer then what should i do ??
how to debug a user program using ftrace ??

Back to comp.os.linux.development.system | Previous | Next | Find similar


Thread

could someone guide me regarding ftrace for kernel debugging? Hemanth Venkatappa <hemanthvenkatappa@gmail.com> - 2014-03-31 02:41 -0700

csiph-web