Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933487Ab3GDDPE (ORCPT ); Wed, 3 Jul 2013 23:15:04 -0400 Received: from mail-yh0-f44.google.com ([209.85.213.44]:59992 "EHLO mail-yh0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932805Ab3GDDPC (ORCPT ); Wed, 3 Jul 2013 23:15:02 -0400 Date: Wed, 3 Jul 2013 23:14:40 -0400 (EDT) From: Vince Weaver To: Vince Weaver cc: linux-kernel@vger.kernel.org, Jiri Olsa , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian , Greg Kroah-Hartman , Andi Kleen Subject: Re: perf/Documentation/ABI -- add some documentation for perf_event sysfs usage In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1412 Lines: 43 On Wed, 3 Jul 2013, Vince Weaver wrote: > > Add some documentation for the perf_event related > /sys/bus/event_source/bus/devices/ > files, since in theory it's a stable interface and the only > current documentation is some lex and yacc files in the > perf tools directory. OK, don't I feel silly, these values were already documented in Documentation/ABI/testing/sysfs-bus-event_source-devices-events rather than ABI/stable To be fair I missed it because the documentation seemed to come from the Power developers and not through perf_event anyway, that documentation says the values will be hex only, which was broken by commit f9134f36aed59ab55c0ab1a4618dd455f15aef5f Author: Andi Kleen Date: Mon Jun 17 17:36:52 2013 -0700 perf/x86/intel: Add mem-loads/stores support for Haswell which added: EVENT_ATTR_STR(mem-loads, mem_ld_hsw, "event=0xcd,umask=0x1,ldlat=3"); (note ldlat is not in hex). This broke the trinity fuzzer (which scans to look for events to use) as well as some of my personal tools. Should the ldlat value be fixed to be hex? Or should we ammend the ABI document to allow decimal? Vince -- 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/