From patchwork Thu Mar 14 18:25:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Liu X-Patchwork-Id: 1056647 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=fb.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=fb.com header.i=@fb.com header.b="KOqtSGfS"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44Kxwp5l0jz9s6w for ; Fri, 15 Mar 2019 05:26:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbfCNSZs (ORCPT ); Thu, 14 Mar 2019 14:25:48 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:46974 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727757AbfCNSZr (ORCPT ); Thu, 14 Mar 2019 14:25:47 -0400 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2EIOuuv030619 for ; Thu, 14 Mar 2019 11:25:46 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=n28j6nh3lFBSHB8IRuS9jidfnodumZxnJPJHrdAGBwU=; b=KOqtSGfS9TWuSy1Uxk21dZ4dON7gYeXd+KNTE2po5U6g8jsTygqOPT4xsD+NHC3IbcxH ilpkpskUlbB6hHVRNdpA4k8c1TMCmM3mNC9F+3Dc3nfiPjbCC3W1qbm+EoLsaUWibPmh CtlEP8n6g9VcFsIDgqFRRkRPCEHI1853n/Y= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2r7u9k07ex-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 14 Mar 2019 11:25:46 -0700 Received: from mx-out.facebook.com (2620:10d:c0a1:3::13) by mail.thefacebook.com (2620:10d:c021:18::174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5; Thu, 14 Mar 2019 11:25:43 -0700 Received: by devbig006.ftw2.facebook.com (Postfix, from userid 4523) id CF9A662E1D1C; Thu, 14 Mar 2019 11:25:41 -0700 (PDT) Smtp-Origin-Hostprefix: devbig From: Song Liu Smtp-Origin-Hostname: devbig006.ftw2.facebook.com To: , , CC: , , , , , , , , Song Liu Smtp-Origin-Cluster: ftw2c04 Subject: [PATCH perf,bpf 0/2] show bpf program info from perf.data header Date: Thu, 14 Mar 2019 11:25:35 -0700 Message-ID: <20190314182538.1294526-1-songliubraving@fb.com> X-Mailer: git-send-email 2.17.1 X-FB-Internal: Safe MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-14_08:, , signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This set enables printing name, address, and size of bpf programs stored in perf.data file. This set applies on top of https://lkml.org/lkml/2019/3/12/39 and the uintptr_t fix (https://lkml.org/lkml/2019/3/14/624). Thanks! Song Liu (2): perf, bpf: refactor perf_event__synthesize_one_bpf_prog() perf, bpf: show BPF program name in print_bpf_prog_info() tools/perf/util/bpf-event.c | 96 +++++++++++++++++++++++++++---------- tools/perf/util/bpf-event.h | 10 +++- tools/perf/util/header.c | 5 +- 3 files changed, 82 insertions(+), 29 deletions(-) --- 2.17.1