From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751894Ab2GULLe (ORCPT ); Sat, 21 Jul 2012 07:11:34 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:44284 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724Ab2GULLc (ORCPT ); Sat, 21 Jul 2012 07:11:32 -0400 From: Namhyung Kim To: Stephane Eranian Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , LKML Subject: [Question] perf header: Why the HEADER_EVENT_DESC is needed? Date: Sat, 21 Jul 2012 20:11:24 +0900 Message-ID: <87txx1qsgz.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) 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 Hi Stephane, I wonder why we need to save the event descriptions in the feature area of file header. Since the perf_event_attr, its ids and the event name are already saved in the header, it seems a duplicate work to do that. For printing the information, we might reuse those info or evlist directly IMHO. Am I missing something? Thanks, Namhyung