Re: [PATCH 1/2] tools lib traceevent: Print event name when show warning if possible

From: Steven Rostedt
Date: Fri Mar 21 2014 - 11:23:04 EST


On Wed, 19 Mar 2014 10:22:53 +0900
Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

> It's sometimes useful to know where the parse failure was occurred.
> Add do_warning_event() macro to see the failing event.
>
> It now shows the messages like below:
>
> $ perf test 5
> 5: parse events tests : Warning: [kvmmmu:kvm_mmu_get_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_sync_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_unsync_page] bad op token {
> Warning: [kvmmmu:kvm_mmu_prepare_zap_page] bad op token {
> Warning: [kvmmmu:fast_page_fault] function is_writable_pte not defined
> Warning: [xen:xen_mmu_ptep_modify_prot_commit] function sizeof not defined
> Warning: [xen:xen_mmu_ptep_modify_prot_start] function sizeof not defined
> Warning: [xen:xen_mmu_set_pgd] function sizeof not defined
> Warning: [xen:xen_mmu_set_pud] function sizeof not defined
> Warning: [xen:xen_mmu_set_pmd] function sizeof not defined

Nice feature.

Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve

> ...
>
--
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/