* Tracing - how can I know which method was called
@ 2013-02-18 15:55 Kevin Wilson
2013-02-18 16:05 ` Frederic Weisbecker
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2013-02-18 15:55 UTC (permalink / raw)
To: kernelnewbies
Hi,
I added a network event trace thus:
echo 1 > /sys/kernel/debug/tracing/events/net/net_dev_xmit/enable
Afterwards I see many lines with net_dev_xmit in /sys/kernel/debug/tracing.
Now, looking in the source code, I see that there are two calls to
trace_net_dev_xmit() in
dev_hard_start_xmit(). These invocations are identical.
see:
http://lxr.free-electrons.com/source/net/core/dev.c?v=2.6.37
Is there a way in which I can make the log say which of these
invocations was called ?
(without changing the dev_hard_start_xmit() method).
rgs,
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Tracing - how can I know which method was called
2013-02-18 15:55 Tracing - how can I know which method was called Kevin Wilson
@ 2013-02-18 16:05 ` Frederic Weisbecker
0 siblings, 0 replies; 2+ messages in thread
From: Frederic Weisbecker @ 2013-02-18 16:05 UTC (permalink / raw)
To: kernelnewbies
2013/2/18 Kevin Wilson <wkevils@gmail.com>:
> Hi,
> I added a network event trace thus:
>
> echo 1 > /sys/kernel/debug/tracing/events/net/net_dev_xmit/enable
>
> Afterwards I see many lines with net_dev_xmit in /sys/kernel/debug/tracing.
>
>
> Now, looking in the source code, I see that there are two calls to
> trace_net_dev_xmit() in
> dev_hard_start_xmit(). These invocations are identical.
>
> see:
> http://lxr.free-electrons.com/source/net/core/dev.c?v=2.6.37
>
> Is there a way in which I can make the log say which of these
> invocations was called ?
> (without changing the dev_hard_start_xmit() method).
Yeah, you can enable the stacktraces in ftrace:
echo stacktrace > /sys/kernel/debug/tracing/trace_options
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-18 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18 15:55 Tracing - how can I know which method was called Kevin Wilson
2013-02-18 16:05 ` Frederic Weisbecker
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.