Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbbGQELw (ORCPT ); Fri, 17 Jul 2015 00:11:52 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35069 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbbGQELv (ORCPT ); Fri, 17 Jul 2015 00:11:51 -0400 Subject: Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event To: He Kuang , pi3orama , Namhyung Kim References: <1436522587-136825-1-git-send-email-hekuang@huawei.com> <1436522587-136825-4-git-send-email-hekuang@huawei.com> <55A042DC.6030809@plumgrid.com> <55A3404B.6020904@huawei.com> <20150713135223.GB9917@danjae.kornet> <4D441676-21A7-46EE-AAB0-EB529D408082@163.com> <20150713140915.GD9917@danjae.kornet> <55A46928.9090708@plumgrid.com> <55A4F869.1020705@huawei.com> Cc: "rostedt@goodmis.org" , "masami.hiramatsu.pt@hitachi.com" , "acme@kernel.org" , "a.p.zijlstra@chello.nl" , "mingo@redhat.com" , "jolsa@kernel.org" , "wangnan0@huawei.com" , "linux-kernel@vger.kernel.org" From: Alexei Starovoitov Message-ID: <55A88085.8090407@plumgrid.com> Date: Thu, 16 Jul 2015 21:11:49 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <55A4F869.1020705@huawei.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 888 Lines: 23 On 7/14/15 4:54 AM, He Kuang wrote: >> I'm not sure llvm generates proper dwarf along with bpf code (I didn't >> test that part. If there are any issues they should be fixable. If you >> can prepapre a patch for llvm that would be even better :) >> > > I found objdump can't get dwarf info from bpf object file: > > $ objdump --dwarf=info bpf.o > bpf.o: file format elf64-little > > $ readelf -a bpf.o |grep debug_info > yeah. looks like this part is not working. Interesting that when I do: clang -O2 -target bpf a.c -g -S there is some minimal debug info in the .s, but .o lacks debuginfo completely. Digging further... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/