From mboxrd@z Thu Jan 1 00:00:00 1970 From: Song Liu Subject: [PATCH v2 bpf-next 0/2] bpf: enable stackmap with build_id in nmi Date: Wed, 2 May 2018 16:20:28 -0700 Message-ID: <20180502232030.3788284-1-songliubraving@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Song Liu , , To: Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:41822 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbeEBXUl (ORCPT ); Wed, 2 May 2018 19:20:41 -0400 Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w42NJ7HO005164 for ; Wed, 2 May 2018 16:20:41 -0700 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hqj7mrus3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 02 May 2018 16:20:41 -0700 Sender: netdev-owner@vger.kernel.org List-ID: Changes v1 -> v2: 1. Rename some variables to (hopefully) reduce confusion; 2. Check irq_work status with IRQ_WORK_BUSY (instead of work->sem); 3. In Kconfig, let BPF_SYSCALL select IRQ_WORK; 4. Add static to DEFINE_PER_CPU(); 5. Remove pr_info() in stack_map_init(). Song Liu (2): bpf: enable stackmap with build_id in nmi context bpf: add selftest for stackmap with build_id in NMI context init/Kconfig | 1 + kernel/bpf/stackmap.c | 59 +++++++++++-- tools/testing/selftests/bpf/test_progs.c | 137 +++++++++++++++++++++++++++++ tools/testing/selftests/bpf/urandom_read.c | 10 ++- 4 files changed, 199 insertions(+), 8 deletions(-)