From patchwork Wed May 2 23:20:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Liu X-Patchwork-Id: 907777 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="UtzOwdCS"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40bvQw1MCDz9s08 for ; Thu, 3 May 2018 09:20:56 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751825AbeEBXUo (ORCPT ); Wed, 2 May 2018 19:20:44 -0400 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 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=lbF1UHV8zylJvkBwp/WYJkWYzj71Q+tK9VCZvnrpAbE=; b=UtzOwdCSzQKfDhYd2x+4fW4GCR9wBrgcTPsDmJZbM6Ac03abVNAt0jagPceoLPZEJohT wHtYFpZ0zdqG4nr1sldBJ0m2sKwBn8BEBoZ9/0uKaRkbY/77iTTIwSGCq1gtbtwTDnsG li2cKd4JDPytB5YAvJDsafpj1vi1EdrVnU0= 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 Received: from mx-out.facebook.com (192.168.52.123) by PRN-CHUB06.TheFacebook.com (192.168.16.16) with Microsoft SMTP Server id 14.3.361.1; Wed, 2 May 2018 16:20:38 -0700 Received: by devbig006.ftw2.facebook.com (Postfix, from userid 4523) id 5794F62E155A; Wed, 2 May 2018 16:20:39 -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 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> X-Mailer: git-send-email 2.9.5 X-FB-Internal: Safe MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-02_09:, , 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. 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(-) --- 2.9.5