Re: [PATCH 5/5] perf test: squelch warnings about undefined sizeof

From: Ramkumar Ramachandra
Date: Tue Mar 18 2014 - 12:41:17 EST


Jiri Olsa wrote:
>> > Squelch the warnings by explicitly ignoring the sizeof function.
>>
>> It just hides the warning leaving the real problem untouched. If you
>> really don't want to see those, I guess installing proper plugin for the
>> failing events will help you (in case you didn't).
>
> it wont' help, sizeof is special.. AFAIK we did not figure
> out a way to handle that so far
>
> but I think it was used only in one trace subsystem.. maybe we
> could replace it and forbid to use it in future ;-)

It only seems to be used by xen:

Warning: [xen:xen_mmu_set_pte] function sizeof not defined
Warning: [xen:xen_mmu_set_pte_atomic] function sizeof not defined
Warning: [xen:xen_mmu_set_domain_pte] function sizeof not defined
Warning: [xen:xen_mmu_set_pte_at] function sizeof not defined
Warning: [xen:xen_mmu_set_pmd] function sizeof not defined
Warning: [xen:xen_mmu_set_pud] function sizeof not defined
Warning: [xen:xen_mmu_set_pgd] function sizeof not defined
Warning: [xen:xen_mmu_ptep_modify_prot_start] function sizeof not defined
Warning: [xen:xen_mmu_ptep_modify_prot_commit] function sizeof not defined

These events are defined in include/trace/events/xen.h. Any hints on
how to proceed?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/