Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp456488imu; Thu, 8 Nov 2018 10:38:19 -0800 (PST) X-Google-Smtp-Source: AJdET5dUNVo4ZdY+VmXyofgcC2QQY7RmI2BlQw3nnTsmz31nEkfTDS5OCLhMiy3mhQi+ZMDlekVm X-Received: by 2002:a17:902:aa84:: with SMTP id d4-v6mr5716010plr.25.1541702299513; Thu, 08 Nov 2018 10:38:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541702299; cv=none; d=google.com; s=arc-20160816; b=jslP9WWQpp1xRIheQyQnT3XtAf4hD+nCjTQcyaKS7QKwwn+FsLVB5ec39fxEw3h4gJ +WcPBY0cy53g+IRNPbXZ3fNzqG2T7WJ2y4etGvr1nR4E5voFfQH+yfiRBUCHVWKjuA69 k2w7XQgoSyo8KN8G75Ozn9d9x5uDwGjs7YTCGwH4f/7EpsnPmEN5t/ufZjTlsVryWgYD sl1DKNB5sJOFNSkQ9jYs2Nm+zc3itedFBi0+JlExx2yoSsENrkK27B1JnWizNR4wmCy8 hPvKx7iiUgIOhiA3lP84MqkN7z92vh1UE8tegS49tSNBWXSUnyII7vqshMfiL/h5JNbm H6VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7zaR5hXeVvGo1yXffIBxsrQ+olUdCy833Oop8XT0fbY=; b=hefvcNyCieDF0B+z1GJ+pL3oIUQNDkTcOn/O7dhYyaoEhLcX1dfrLsVt74zwjOKRpx rRldXYcfJxlOmCV0eqg/JsOWwdfVaze+0F4pCcrqciMakwUMUgWY/y4XtZ1SPbhKfOu6 0EcZv5iKGZBE8kN4GyWUFa1SQOMLDAPBoBRNwrMZqVsfX1tRF0CtYuziwwvhp3Ca6LmX P/S+8ZSMixUWQB/7Do+f1dDa2wb/6WpJIl0BNpyZdVVsjRcDnKCHWEDiPlhgeQCyG6ts hbqLBlFRzyE2yvCMf7S3+lUAp4phsgzI+oJ0gicdJm8jtx0tYu8wcltWsZn5hW+K5mam rP6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZyfVkdz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si5276241plk.263.2018.11.08.10.37.56; Thu, 08 Nov 2018 10:38:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZyfVkdz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727304AbeKIEDB (ORCPT + 99 others); Thu, 8 Nov 2018 23:03:01 -0500 Received: from mail-pg1-f181.google.com ([209.85.215.181]:46970 "EHLO mail-pg1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeKIEDB (ORCPT ); Thu, 8 Nov 2018 23:03:01 -0500 Received: by mail-pg1-f181.google.com with SMTP id w7so9188486pgp.13; Thu, 08 Nov 2018 10:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7zaR5hXeVvGo1yXffIBxsrQ+olUdCy833Oop8XT0fbY=; b=rZyfVkdzy+1wHXm6+IXYCM7Uo1TQYP5a7WfMYJIzyVRaXFJ/Nxop9yjKU5Zd++oLBf PzbE7edkWvY71tgOjC0cjb4OPZwBCUBHIiJ5W0ov/BfGn6LOTo4/xkeJMgH+SM6GGmDs +AE1wa/SCNv1/kynlrgtDxXmmrmC7U3gE1vk+pmVn78H9lA0K9CVyV6IISyYi1wgXLnR IWmimlETVG+6Jq1t6ZM26CbdeomAllFUD9tMx87Y4c6YTBpwrDUrN8TYQdJC7P19QpkB CjdxyYRzphtp/5s4yIiSvILvHt9NvDHujz5BAgLJJ2n+JdMCE+4L0u5XutQtn+HGkah2 bPtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7zaR5hXeVvGo1yXffIBxsrQ+olUdCy833Oop8XT0fbY=; b=WB1k7BLI0h+g4IGb2ds2pfmeuu+LjnTMjjkzBU7Mj8/3WZMq7ub7OX5uOqhXaIbGWe 4VfQqqP/SN26DKiQwAvEP/7nPUdUrQhkRw3GhxoWB3o2MghamXIwO2FTSgmbPGOKWUzm QRpKdP9kzHMcF7dgSAmcv/0ry5GvCDlRtswZ6T5zg8bwiE6yjsJ7Yit8C6/W651Qtb9O /AXKnt9iV+gY8P1uKysTH89iSyS65/RCjgnigrUervHfZ2jmXryOM7pwAbumI+nFKw2u MjlLi6lOzyuIfIoGObxuF0ouRwR4RuLCKjI+0L89dlH+Ha9ZnYKl5hjK9KRasf++pQpG WY8A== X-Gm-Message-State: AGRZ1gLuW0IYLKto8BauF78brgFVG8b+nojkzvpLhGiRr/N+eIYM6zFi VZf9meduybe1ZzVsrgHIZpBpkIja X-Received: by 2002:a63:fa46:: with SMTP id g6mr4703275pgk.18.1541701575903; Thu, 08 Nov 2018 10:26:15 -0800 (PST) Received: from ?IPv6:2601:282:800:fd80:3ded:1ded:5c12:ca8f? ([2601:282:800:fd80:3ded:1ded:5c12:ca8f]) by smtp.googlemail.com with ESMTPSA id n23-v6sm8145453pfg.84.2018.11.08.10.26.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 10:26:14 -0800 (PST) Subject: Re: [RFC perf,bpf 1/5] perf, bpf: Introduce PERF_RECORD_BPF_EVENT To: Song Liu , Peter Zijlstra Cc: Netdev , lkml , Kernel Team , "ast@kernel.org" , "daniel@iogearbox.net" , "acme@kernel.org" References: <20181106205246.567448-1-songliubraving@fb.com> <20181106205246.567448-2-songliubraving@fb.com> <20181107084057.GG9781@hirez.programming.kicks-ass.net> <31067290-4B66-4AA1-8027-607397BC0264@fb.com> <20181108150028.GU9761@hirez.programming.kicks-ass.net> From: David Ahern Message-ID: Date: Thu, 8 Nov 2018 11:26:12 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/18 11:04 AM, Song Liu wrote: > On the other hand, processing BPF load/unload events synchronously should > not introduce too much overhead for meaningful use cases. If many BPF progs > are being loaded/unloaded within short period of time, it is not the steady > state that profiling works care about. but, profiling is not the only use case, and perf-record is common with those other use cases. I think that answers why your RFC set does not fork a thread for the bpf events. You are focused on profiling and for already loaded programs or for a small number of programs loaded by a specific workload started by perf.