From patchwork Tue Mar 19 16:54:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Liu X-Patchwork-Id: 1058548 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="XAkFNDJb"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44NzgX3PJ4z9s3q for ; Wed, 20 Mar 2019 03:55:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbfCSQzC (ORCPT ); Tue, 19 Mar 2019 12:55:02 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:41574 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727141AbfCSQzC (ORCPT ); Tue, 19 Mar 2019 12:55:02 -0400 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2JGsw6S030808 for ; Tue, 19 Mar 2019 09:55:01 -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=kjrIyinGEmYU8C0T0ynJmw6/RNl4jcQUr2v1ebiwFyc=; b=XAkFNDJbU+f7JrR9Hg7mBky5lw21eeEna0TQkk2T3XFgoPr1FH0vWwK+AOA9zx+eEJEn iAxmMHLirqkEDYiOdHrBFW+phdddUvlqPv3u/62s3VbwTyTrD3kTbDfRmVoaIxCskvoR s2h3otHZkLN2ICAgQVYWehEUpBren5IXR0o= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2rb103gw7d-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 19 Mar 2019 09:55:01 -0700 Received: from mx-out.facebook.com (2620:10d:c081:10::13) by mail.thefacebook.com (2620:10d:c081:35::130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5; Tue, 19 Mar 2019 09:54:58 -0700 Received: by devbig006.ftw2.facebook.com (Postfix, from userid 4523) id 08FA962E1F1B; Tue, 19 Mar 2019 09:54:57 -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 v2 perf, bpf 0/2] show bpf program info from perf.data header Date: Tue, 19 Mar 2019 09:54:52 -0700 Message-ID: <20190319165454.1298742-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-19_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 Changes v1 -> v2: 1. Rebase on top of https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/commit/?h=perf/core&id=23265467966555a7c379263369362d576d513643 This set enables printing name, address, and size of bpf programs stored in perf.data file. Thanks! Song Liu (2): perf, bpf: refactor perf_event__synthesize_one_bpf_prog() perf, bpf: show more BPF program info in print_bpf_prog_info() tools/perf/util/bpf-event.c | 102 ++++++++++++++++++++++++++---------- tools/perf/util/bpf-event.h | 10 +++- tools/perf/util/header.c | 5 +- 3 files changed, 87 insertions(+), 30 deletions(-) --- 2.17.1