From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Subject: Re: CAN State Information Date: Fri, 09 Dec 2011 09:19:06 +0100 Message-ID: <4EE1C47A.7080507@grandegger.com> References: <166589D0B9DD2547A1319599B9BADA1FC1960C@vsv-exchange.ixxat.intranet.priv> <4EDE342E.8030102@grandegger.com> <166589D0B9DD2547A1319599B9BADA1FC1981F@vsv-exchange.ixxat.intranet.priv> <4EE10CB4.2090604@grandegger.com> <166589D0B9DD2547A1319599B9BADA1FC19968@vsv-exchange.ixxat.intranet.priv> <4EE1C3BF.70104@grandegger.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EE1C3BF.70104-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Errors-To: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org To: kime-Z4QKGCRq86k@public.gmane.org Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org, linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-can.vger.kernel.org On 12/09/2011 09:15 AM, Wolfgang Grandegger wrote: > On 12/09/2011 09:03 AM, kime-Z4QKGCRq86k@public.gmane.org wrote: >> I plan to spend some time today tracking down the problem. I am most curious to discover if there is a problem in the msg returned from send_dump_request(). >> >> $ sudo ./canconfig can0 state >> can0 state: STOPPED >> $ sudo ./canconfig can1 state >> can1 state: STOPPED >> $ " >> can2: failed to get state >> $ sudo ./canconfig can3 state >> can3: failed to get state > > OK, what does strace tell you. Is there a system call failing with "-1"? > Also ftrace could give some hint (assuming that ftrace and function > tracing is enabled in you kernel): > > # mount -tdebugfs none /sys/kernel/debug/ > # cd /sys/kernel/debug/tracing/ > # echo function > current_tracer > # echo "can_*" > set_ftrace_filter > # cat set_ftrace_filter > # echo 0 > trace # echo 1 > tracing_on might also be necessary (usually it on by default). Wolfgang.