This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH v3 1/2] systemtap/tapsets.cxx: Adjusted for multiple static functions
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Hemant Kumar <hemant at linux dot vnet dot ibm dot com>
- Cc: Mark Wielaard <mjw at redhat dot com>, Josh Stone <jistone at redhat dot com>, systemtap at sourceware dot org, naveen dot n dot rao at linux dot vnet dot ibm dot com, ulrich dot weigand at de dot ibm dot com, uweigand at gcc dot gnu dot org, anton at samba dot org
- Date: Thu, 9 Apr 2015 15:30:35 -0400
- Subject: Re: [PATCH v3 1/2] systemtap/tapsets.cxx: Adjusted for multiple static functions
- Authentication-results: sourceware.org; auth=none
- References: <1427463736-4258-1-git-send-email-hemant at linux dot vnet dot ibm dot com> <1428500598 dot 5539 dot 88 dot camel at bordewijk dot wildebeest dot org> <y0megnud3h5 dot fsf at fche dot csb> <5526A686 dot 2040101 at linux dot vnet dot ibm dot com>
Hi -
On Thu, Apr 09, 2015 at 09:49:18PM +0530, Hemant Kumar wrote:
> [...]
> But, when I tried that this with multimap, the problem I faced is we can
> insert two or more entries with same key and value, [...]
> But yeah, this can be done with multimap with a duplication check before
> insertion.
... or have the lookup function compute a set<> from the multimap range,
thereby doing duplicate elimination implicitly.
- FChE