From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yonghong Song Subject: [PATCH bpf-next 0/2] bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map Date: Wed, 3 Jan 2018 23:27:44 -0800 Message-ID: <20180104072746.1569033-1-yhs@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: , , Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:47232 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbeADH1s (ORCPT ); Thu, 4 Jan 2018 02:27:48 -0500 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w047Rld8030885 for ; Wed, 3 Jan 2018 23:27:47 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2f9fvj8030-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 03 Jan 2018 23:27:47 -0800 Sender: netdev-owner@vger.kernel.org List-ID: The patch set implements bpf syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map. Patch #1 is the core implementation and Patch #2 implements a bpf test at tools/testing/selftests/bpf directory. Please see individual patch comments for details. Yonghong Song (2): bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map tools/bpf: add a bpf selftest for stacktrace kernel/bpf/stackmap.c | 23 +++- tools/testing/selftests/bpf/Makefile | 2 +- tools/testing/selftests/bpf/test_progs.c | 127 ++++++++++++++++++++++ tools/testing/selftests/bpf/test_stacktrace_map.c | 62 +++++++++++ 4 files changed, 211 insertions(+), 3 deletions(-) create mode 100644 tools/testing/selftests/bpf/test_stacktrace_map.c -- 2.9.5