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


Groups > linux.kernel > #1186419

Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Alexei Starovoitov <ast@plumgrid.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
Date Fri, 17 Jul 2015 06:20:02 +0200
Message-ID <pN5hU-2OF-5@gated-at.bofh.it> (permalink)
References <pKDpL-4AR-3@gated-at.bofh.it> <pKDpN-4AR-45@gated-at.bofh.it> <pKOOe-3cV-9@gated-at.bofh.it> <pLDH3-wR-11@gated-at.bofh.it> <pLMr0-5IB-11@gated-at.bofh.it> <pLMAG-612-27@gated-at.bofh.it> <pLMKl-64q-11@gated-at.bofh.it> <pLN3I-6be-17@gated-at.bofh.it> <pLXw7-4lA-5@gated-at.bofh.it> <pM72q-1HL-15@gated-at.bofh.it>
X-Original-To He Kuang <hekuang@huawei.com>, pi3orama <pi3orama@163.com>, Namhyung Kim <namhyung@kernel.org>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=N3XxZUn7Zawtu6EJUw+/vEng6kurX7/gP6uCsu4lAsE=; b=PIcx1GsKhDcUHEVZsysPJFg9nrV77W1ZxXX91gkyHXa48YGBBbiNoz772ZV7S8oboY SvGrF2/8Xzg/VCbqXpcooa0pD07MOwSVdaomcrH2KHrvd2C9/YRjA5vHv46PAWEOkvpp 3RgFGqZcJvyHwS0BijTXTsBg15Edq6bhUTxaLHQiGlR/ayTFXlht6sqfekXng0yDcI0h BwtETTvTghahCjeDYvy1rRw8GyF3O77AMdKpPWHGU98K2XKU7gE8+FKNamyPimruiFQn QY0Kfnm/xz3ZlCYmWooOIGRc8LmwtncMy2pu7CpOljUykpQmjCz4AWLyXXEC7WXwzOEE uTKg==
X-Gm-Message-State ALoCoQnO1PofIi7xqf5kIn2R3Rra/ewZCMvHbmpfkR5EgCLC+J4VlB85c6fKbU4/LP1VN33qmHQB
X-Received by 10.66.62.194 with SMTP id a2mr25863350pas.67.1437106311037; Thu, 16 Jul 2015 21:11:51 -0700 (PDT)
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
Content-Type text/plain; charset=gbk; format=flowed
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
X-Original-Cc "rostedt@goodmis.org" <rostedt@goodmis.org>, "masami.hiramatsu.pt@hitachi.com" <masami.hiramatsu.pt@hitachi.com>, "acme@kernel.org" <acme@kernel.org>, "a.p.zijlstra@chello.nl" <a.p.zijlstra@chello.nl>, "mingo@redhat.com" <mingo@redhat.com>, "jolsa@kernel.org" <jolsa@kernel.org>, "wangnan0@huawei.com" <wangnan0@huawei.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
X-Original-Date Thu, 16 Jul 2015 21:11:49 -0700
X-Original-Message-ID <55A88085.8090407@plumgrid.com>
X-Original-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> <B5145998-CD5C-4B1B-9A42-CD19691EF80B@163.com> <55A46928.9090708@plumgrid.com> <55A4F869.1020705@huawei.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1186419

Show key headers only | View raw


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
>    <EMPTY>

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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to  perf event Alexei Starovoitov <ast@plumgrid.com> - 2015-07-17 06:20 +0200

csiph-web