From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:42068 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932242AbeCLVcl (ORCPT ); Mon, 12 Mar 2018 17:32:41 -0400 Subject: Re: [PATCH bpf-next v4 1/2] bpf: extend stackmap to save binary_build_id+offset instead of address To: Song Liu References: <20180312203957.2025833-1-songliubraving@fb.com> <20180312203957.2025833-2-songliubraving@fb.com> <97bb9fff-beda-6ace-8ed2-57f1f2de8c69@fb.com> <664505EF-F681-4641-B49A-6CF4F5CFB5C8@fb.com> CC: "netdev@vger.kernel.org" , "ast@kernel.org" , Peter Zijlstra , Daniel Borkmann , Kernel Team , "hannes@cmpxchg.org" , Teng Qin From: Alexei Starovoitov Message-ID: Date: Mon, 12 Mar 2018 14:31:46 -0700 MIME-Version: 1.0 In-Reply-To: <664505EF-F681-4641-B49A-6CF4F5CFB5C8@fb.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 3/12/18 2:12 PM, Song Liu wrote: > >> On Mar 12, 2018, at 2:00 PM, Alexei Starovoitov wrote: >> >> On 3/12/18 1:39 PM, Song Liu wrote: >>> + page = find_get_page(vma->vm_file->f_mapping, 0); >> >> did you test it with config_debug_atomic_sleep ? >> it should have complained... > > Yeah, I have CONFIG_DEBUG_ATOMIC_SLEEP=y. > > I think find_get_page() will not sleep. The variation find_get_page_flags() > may sleep with flag FGP_CREAT. I see. gfp_mask == 0 and no locks. should work indeed. curious how perf report looks like for heavy bpf_get_stackid() usage?