From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by dpdk.org (Postfix) with ESMTP id 4988A569A for ; Thu, 7 May 2015 15:39:39 +0200 (CEST) Received: by obfe9 with SMTP id e9so31458039obf.1 for ; Thu, 07 May 2015 06:39:38 -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=cuy5Oq1n91LhR4rDM6lMXx0CMb8EIqFgqyJvtwWIEn4=; b=QEBZuVgKj4Y2tQvewWZpdxMuT6ICUni0x23D9xOxmLvlWKHWfbv/dM/700ClIRdqrl FHUC4IVPQrvPC+/QnxZMjXvRrRp0s27968fi33ohuD1nAstV20d4znsRJEnQ+gRG+vMY xvT9Q7mD9nLmflqNLxevdfJLP/oMKIwnmBHkEz6vPI1B9AvLf/9sd/bYYJQ+tCVy/xjQ +1ALZzQ4kxNDk7peibA4L1fMN9QLIKfe3mLamC4B/Hm4mo6xBjsOxbU03v72DfTfVwaX gYPzVNQQTLJVPS5SiqCBW5p1F03Ixl/IiOeECZcZvhk8V/iP5BffG8tkB4U3zZeK93rv l7YQ== X-Gm-Message-State: ALoCoQlXhF3io/ruwFnTOPPvC7bHxMWpia3XUDC9g4Vij7HTyZEocNkeseTfBDmUEnm54S+oYQGy MIME-Version: 1.0 X-Received: by 10.60.137.201 with SMTP id qk9mr3313777oeb.15.1431005978734; Thu, 07 May 2015 06:39:38 -0700 (PDT) Received: by 10.76.131.19 with HTTP; Thu, 7 May 2015 06:39:38 -0700 (PDT) In-Reply-To: <20150507133614.GB336@hmsreliant.think-freely.org> References: <1422594454-11045-1-git-send-email-jing.d.chen@intel.com> <1422594454-11045-5-git-send-email-jing.d.chen@intel.com> <20150131141935.GB22012@localhost.localdomain> <20150131163227.GA23878@localhost.localdomain> <20150131183535.GA24821@localhost.localdomain> <20150507133614.GB336@hmsreliant.think-freely.org> Date: Thu, 7 May 2015 15:39:38 +0200 Message-ID: From: David Marchand To: Neil Horman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 04/18] fm10k: add fm10k device id X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 13:39:39 -0000 On Thu, May 7, 2015 at 3:36 PM, Neil Horman wrote: > > I tried to reuse modinfo, but the problem is that kmod implementation is > > checking the filename extension against .ko and .ko.gz. > > > Well, you can alter modinfo so that it looks at .so files if you like, but > thats > not the only tool you can use. Truthfully you can just use objdump if you > like. > > > I find it a bit too bad to have to rewrite this kind of tool just for > dpdk > > ... but on the other hand we would need something for bsd as well or we > > give a shell script that rely on readelf to retrieve theis section. > > > See above, try objdump -j=.modinfo -S /path/to/kernel/module. objdump > doesn't > care about file extensions, as long as its ELF. With that you can: > > 1) Dump out any section contents you like > 2) strip away the application top end, and just use libbfd to get at the > elf > contents if you like. > Yes, I reached the same conclusion. Ok, I will see what I can do. Thanks. -- David Marchand