From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932398AbbJUUIl (ORCPT ); Wed, 21 Oct 2015 16:08:41 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35731 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756183AbbJUUEo (ORCPT ); Wed, 21 Oct 2015 16:04:44 -0400 Subject: Re: [PATCH net-next 2/3] bpf: introduce bpf_perf_event_output() helper To: "Wangnan (F)" , He Kuang , "David S. Miller" References: <1445396556-4854-1-git-send-email-ast@kernel.org> <1445396556-4854-3-git-send-email-ast@kernel.org> <56276261.7010201@huawei.com> <56277178.4080207@huawei.com> Cc: Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Alexei Starovoitov Message-ID: <5627EFD9.9050805@plumgrid.com> Date: Wed, 21 Oct 2015 13:04:41 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56277178.4080207@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/21/15 4:05 AM, Wangnan (F) wrote: > I think we can > make perf output raw data hexadamically at first. that would be my suggestion as well. print it as hex first and when llvm type info is available you can teach perf to be smarter. We're working on support for this feature in iovisor/bcc without requiring extra llvm work, since we can generate python classes on the fly from C code of bpf program.