From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753564AbbIICKw (ORCPT ); Tue, 8 Sep 2015 22:10:52 -0400 Received: from mgwkm01.jp.fujitsu.com ([202.219.69.168]:45647 "EHLO mgwkm01.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752066AbbIICKo (ORCPT ); Tue, 8 Sep 2015 22:10:44 -0400 X-SecurityPolicyCheck: OK by SHieldMailChecker v2.2.3 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20140219-2 Subject: Re: [PATCH v2 2/4] perf: Add function to enable perf events in kernel with ring buffer To: , , , , , , , References: <1441691364-5612-1-git-send-email-indou.takao@jp.fujitsu.com> <1441691364-5612-3-git-send-email-indou.takao@jp.fujitsu.com> <87r3m9fe8b.fsf@ashishki-desk.ger.corp.intel.com> CC: , From: Takao Indoh Message-ID: <55EF9505.4030708@jp.fujitsu.com> Date: Wed, 9 Sep 2015 11:10:13 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <87r3m9fe8b.fsf@ashishki-desk.ger.corp.intel.com> Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/09/08 18:32, Alexander Shishkin wrote: > Takao Indoh writes: > >> perf_event_create_kernel_counter is used to enable perf events in kernel >> without buffer for logging its events. This patch add new fucntion which >> enable perf events with ring buffer. Intel PT logger uses this to enable >> Intel PT and some associated events with its log buffer. > > Have you seen [1] and related patches? I haven't gotten around to > updating them yet, but hopefully it's going to happen soon. > > The problem is that for such api to work, this memory needs to be > accounted, especially when you start handling event inheritance. For > system crash dump it doesn't really matter, but I also need a similar > api for per-task core dumps, for example. I have not seen this, I'll check it. You or someone else are working on api for process core dump? Thanks, Takao Indoh > > [1] https://lkml.org/lkml/2014/10/13/290 > > Thanks, > -- > Alex >