lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 9 Aug 2013 10:53:08 -0300 From: Arnaldo Carvalho de Melo <acme@...stprotocols.net> To: David Ahern <dsahern@...il.com> Cc: linux-kernel@...r.kernel.org, mingo@...nel.org, Jiri Olsa <jolsa@...hat.com>, Namhyung Kim <namhyung@...nel.org>, Frederic Weisbecker <fweisbec@...il.com>, Peter Zijlstra <peterz@...radead.org>, Stephane Eranian <eranian@...gle.com> Subject: Re: [PATCH 07/19] perf top: Use new idle_sym check Em Thu, Aug 08, 2013 at 10:49:24PM -0400, David Ahern escreveu: > On 8/8/13 11:06 AM, Arnaldo Carvalho de Melo wrote: > >Em Wed, Aug 07, 2013 at 10:50:49PM -0400, David Ahern escreveu: > >>Avoids strcmp processing each sample. > > > >How so? This is done just when loading a DSO, when then each symbol is > >checked against this list. > > hmmm.... see that now, yes. The timehist command wants to know idle > times, not just filter them out like perf-top does. 'perf top' shouldn't just discard idle symbols, but group them in a special hist_entry, that should be displayed at the top, etc, but this is another issue, what matters here is that it doesn't "filters" in the sense of symbol_filter_t, it returns 0 if the symbol name matches one of the entries in that skip_list, which marks symbol->ignore, but it is still in the rb_tree. Being "discarded" only later, when processing the sample. The only thing it really filters out are these symtab entries: if (!strcmp(name, "_text") || !strcmp(name, "_etext") || !strcmp(name, "_sinittext") || !strncmp("init_module", name, 11) || !strncmp("cleanup_module", name, 14) || strstr(name, "_text_start") || strstr(name, "_text_end")) return 1; Those I think could be pruned somehow in dso__load_{kallsyms|kernel}*(), like some other symbols are already (SyS_). With this in mind, would using the same scheme Ok for you? - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists