Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751155Ab2F1EKz (ORCPT ); Thu, 28 Jun 2012 00:10:55 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:33549 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744Ab2F1EKy (ORCPT ); Thu, 28 Jun 2012 00:10:54 -0400 Message-ID: <4FEBD945.4050702@gmail.com> Date: Wed, 27 Jun 2012 22:10:45 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Namhyung Kim , Jovi Zhang CC: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Subject: Re: perf support user-space hw_breakpoint? References: <87bok7x0e1.fsf@sejong.aot.lge.com> <87txxwxjmu.fsf@sejong.aot.lge.com> In-Reply-To: <87txxwxjmu.fsf@sejong.aot.lge.com> Content-Type: multipart/mixed; boundary="------------040709020102030502080502" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2978 Lines: 59 This is a multi-part message in MIME format. --------------040709020102030502080502 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/27/12 8:20 PM, Namhyung Kim wrote: > NAK. This uses_mmap field is needed to setup per-task-per-cpu events for > perf record (mostly). Without it, perf suffered from severe scalability > issues. Maybe we can change it not to create per-task-per-cpu events iff > for hwbp events only, but I'm not sure it's the right thing. > > Thanks, > Namhyung Add -a to the record command. And if you want to dump the samples try the attached. David --------------040709020102030502080502 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="perf-script-bp.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="perf-script-bp.patch" ZGlmZiAtLWdpdCBhL3Rvb2xzL3BlcmYvYnVpbHRpbi1zY3Jp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QkJZnByaW50ZihzdGRlcnIsICJJbnZhbGlk IGV2ZW50IHR5cGUgaW4gZmllbGQgc3RyaW5nLlxuIik7CiAJCQlyYyA9IC1FSU5WQUw7CkBA IC0xMTQ0LDcgKzExNTcsNyBAQCBzdGF0aWMgY29uc3Qgc3RydWN0IG9wdGlvbiBvcHRpb25z W10gPSB7CiAJCSAgICAiTG9vayBmb3IgZmlsZXMgd2l0aCBzeW1ib2xzIHJlbGF0aXZlIHRv IHRoaXMgZGlyZWN0b3J5IiksCiAJT1BUX0NBTExCQUNLKCdmJywgImZpZWxkcyIsIE5VTEws ICJzdHIiLAogCQkgICAgICJjb21tYSBzZXBhcmF0ZWQgb3V0cHV0IGZpZWxkcyBwcmVwZW5k IHdpdGggJ3R5cGU6Jy4gIgotCQkgICAgICJWYWxpZCB0eXBlczogaHcsc3csdHJhY2UscmF3 LiAiCisJCSAgICAgIlZhbGlkIHR5cGVzOiBodyxzdyx0cmFjZSxyYXcsYnAuICIKIAkJICAg ICAiRmllbGRzOiBjb21tLHRpZCxwaWQsdGltZSxjcHUsZXZlbnQsdHJhY2UsaXAsc3ltLGRz bywiCiAJCSAgICAgImFkZHIsc3ltb2ZmIiwKIAkJICAgICBwYXJzZV9vdXRwdXRfZmllbGRz KSwK --------------040709020102030502080502-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/