From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32303 invoked by alias); 5 Oct 2013 00:37:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32289 invoked by uid 89); 5 Oct 2013 00:37:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f174.google.com Received: from mail-ve0-f174.google.com (HELO mail-ve0-f174.google.com) (209.85.128.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 05 Oct 2013 00:37:52 +0000 Received: by mail-ve0-f174.google.com with SMTP id jy13so2776647veb.5 for ; Fri, 04 Oct 2013 17:37:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=9TqF8JeVOyEAtUYWCbU1d/XMG6Go2g4w0kNILq4Y6yE=; b=fJ9eglKv9+aCPNhYajD/7hxyYfc96k0aTvtjZbP5E4i5tWVNptxuaonrETyO31DgiE AHK5gQR+hCMLeAyNYiYhX5wwoU579SYeJh9+5nMvPe0BVAzUlMuksTts1Lwenjs13gDO k+N09Ik5ztO+6ySuaX61k4GN3SkRZH/ptyGXWvJbrjBt5WZhc1qzEIpBxLBII1fYZ2t/ 9g2/kGXHSOOsfyAnAPQyKJk/XU3X/HFS2XxjLcAzQY8qDRKTpo4P607/mzfyMUwKtX9+ uZFpU9sN+u/spiq3pxmMyjbJbLxcQ5gTgujSaSBXwXO5ZGBO6IehDg1TPfH3R706wAUU k6oA== X-Gm-Message-State: ALoCoQmECcXAFbjmAcwgSVnKqNnZG+1rRf6CC6bnrGu+9FOmYiUoMxzhzdHD93tdvk1AYOaxXBmXjXkohksgsCVTtvjtH6fs3srB8yjcT2qMmu7iXooPtmI2Zs39CkAu1y4uA5Q3+3l6CJBP4k9RRj+ql2RsLBygpynYqjPtYZ6ZPldSdG7pgD4sbiczWN6K+m96IiLcCfcxPFVussyiS5JKiRV0tlStNA== MIME-Version: 1.0 X-Received: by 10.52.161.231 with SMTP id xv7mr12380989vdb.1.1380933470332; Fri, 04 Oct 2013 17:37:50 -0700 (PDT) Received: by 10.52.37.138 with HTTP; Fri, 4 Oct 2013 17:37:50 -0700 (PDT) In-Reply-To: <5240F961.3030800@codesourcery.com> References: <520B7F70.6070207@codesourcery.com> <1377663394-4975-1-git-send-email-yao@codesourcery.com> <1377663394-4975-4-git-send-email-yao@codesourcery.com> <521D7BCA.10806@codesourcery.com> <21051.32359.845429.92304@ruffy.mtv.corp.google.com> <523E8D0A.2050205@codesourcery.com> <5240F961.3030800@codesourcery.com> Date: Sat, 05 Oct 2013 00:37:00 -0000 Message-ID: Subject: Re: [RFC 3/3] Test on solib load and unload From: Doug Evans To: Yao Qi Cc: gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00157.txt.bz2 On Mon, Sep 23, 2013 at 7:30 PM, Yao Qi wrote: > On 09/23/2013 08:14 AM, Doug Evans wrote: >> >> I think it is the test framework's responsibility to provide the utilities >> to. >> Large tests (of the size we need to collect data for) are best not >> written by hand, and if we're going to machine generate source, I >> would rather such generators come from the framework than always be >> hardcoded into every such test. [Obviously some tests may have unique >> needs though.] >> > > Doug, > Generating source is easy in this test case. However, I am not sure it is > easy to generate source for other perf test cases, like symbols and types. > Supposing we want to generate source files have 1 million classes, with some > hierarchies, the generation script can't be simple, IMO. On the other hand, > I don't know how representative the generated program is, compared with the > real large applications, such as openoffice, clang, etc. Hi. Found this in my inbox and realized I hadn't replied. [At least I can't find a reply.] It's easy enough to generate programs with a million symbols. A quick hack that used bash did it in a reasonable amount of time. [I'm not suggesting we use bash, I just used it as a quick hack to see how long it would take.] As for being representative, gdb doesn't care what the program does, the program just has to look representative. E.g., 10K DWARF CUs, 500K DWARF TUs, 4M ELF symbols, 5000 shared libs, and so on. I don't envision the scripts to generate this being too complex.