* Re: [PATCH lttng-modules v2] Add new tracepoint in KVM.
[not found] <1381283373-25699-1-git-send-email-mohamad.gebai@polymtl.ca>
@ 2013-10-10 14:38 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-10-10 14:38 UTC (permalink / raw)
To: Mohamad Gebai; +Cc: lttng-dev, Mohamad Gebai
----- Original Message -----
> From: "Mohamad Gebai" <mohamad.gebai@gmail.com>
> To: lttng-dev@lists.lttng.org
> Cc: "Mohamad Gebai" <mohamad.gebai@polymtl.ca>
> Sent: Tuesday, October 8, 2013 9:49:32 PM
> Subject: [lttng-dev] [PATCH lttng-modules v2] Add new tracepoint in KVM.
For next patches, please remove the dot from the end of patch title.
Also, since your email "From" is @gmail.com, it does not match your polymtl address. I'm assuming the Author is from polymtl.
I think you could add a From field within the patch header next time to correct this.
Merged,
Thanks!
Mathieu
>
> New tracepoint added in kvm: kvm_write_tsc_offset.
>
> Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
> ---
> .../events/lttng-module/arch/x86/kvm/trace.h | 23
> ++++++++++++++++++++
> .../events/mainline/arch/x86/kvm/trace.h | 21 ++++++++++++++++++
> 2 files changed, 44 insertions(+)
>
> diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> index 8e71a7f..5eec169 100644
> --- a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> +++ b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
> @@ -761,6 +761,29 @@ TRACE_EVENT(
> __entry->gpa_match ? "GPA" : "GVA")
> )
>
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
> +TRACE_EVENT(kvm_write_tsc_offset,
> + TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset,
> + __u64 next_tsc_offset),
> + TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset),
> +
> + TP_STRUCT__entry(
> + __field( unsigned int, vcpu_id )
> + __field( __u64, previous_tsc_offset )
> + __field( __u64, next_tsc_offset )
> + ),
> +
> + TP_fast_assign(
> + tp_assign(vcpu_id, vcpu_id)
> + tp_assign(previous_tsc_offset, previous_tsc_offset)
> + tp_assign(next_tsc_offset, next_tsc_offset)
> + ),
> +
> + TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id,
> + __entry->previous_tsc_offset, __entry->next_tsc_offset)
> +)
> +#endif
> +
> #ifdef CONFIG_X86_64
>
> #define host_clocks \
> diff --git a/instrumentation/events/mainline/arch/x86/kvm/trace.h
> b/instrumentation/events/mainline/arch/x86/kvm/trace.h
> index fe5e00e..545245d 100644
> --- a/instrumentation/events/mainline/arch/x86/kvm/trace.h
> +++ b/instrumentation/events/mainline/arch/x86/kvm/trace.h
> @@ -756,6 +756,27 @@ TRACE_EVENT(
> __entry->gpa_match ? "GPA" : "GVA")
> );
>
> +TRACE_EVENT(kvm_write_tsc_offset,
> + TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset,
> + __u64 next_tsc_offset),
> + TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset),
> +
> + TP_STRUCT__entry(
> + __field( unsigned int, vcpu_id )
> + __field( __u64, previous_tsc_offset )
> + __field( __u64, next_tsc_offset )
> + ),
> +
> + TP_fast_assign(
> + __entry->vcpu_id = vcpu_id;
> + __entry->previous_tsc_offset = previous_tsc_offset;
> + __entry->next_tsc_offset = next_tsc_offset;
> + ),
> +
> + TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id,
> + __entry->previous_tsc_offset, __entry->next_tsc_offset)
> +);
> +
> #ifdef CONFIG_X86_64
>
> #define host_clocks \
> --
> 1.7.10.4
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH lttng-modules v2] Add new tracepoint in KVM.
@ 2013-10-09 1:49 Mohamad Gebai
0 siblings, 0 replies; 2+ messages in thread
From: Mohamad Gebai @ 2013-10-09 1:49 UTC (permalink / raw)
To: lttng-dev; +Cc: Mohamad Gebai
New tracepoint added in kvm: kvm_write_tsc_offset.
Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
---
.../events/lttng-module/arch/x86/kvm/trace.h | 23 ++++++++++++++++++++
.../events/mainline/arch/x86/kvm/trace.h | 21 ++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
index 8e71a7f..5eec169 100644
--- a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
+++ b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h
@@ -761,6 +761,29 @@ TRACE_EVENT(
__entry->gpa_match ? "GPA" : "GVA")
)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
+TRACE_EVENT(kvm_write_tsc_offset,
+ TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset,
+ __u64 next_tsc_offset),
+ TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset),
+
+ TP_STRUCT__entry(
+ __field( unsigned int, vcpu_id )
+ __field( __u64, previous_tsc_offset )
+ __field( __u64, next_tsc_offset )
+ ),
+
+ TP_fast_assign(
+ tp_assign(vcpu_id, vcpu_id)
+ tp_assign(previous_tsc_offset, previous_tsc_offset)
+ tp_assign(next_tsc_offset, next_tsc_offset)
+ ),
+
+ TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id,
+ __entry->previous_tsc_offset, __entry->next_tsc_offset)
+)
+#endif
+
#ifdef CONFIG_X86_64
#define host_clocks \
diff --git a/instrumentation/events/mainline/arch/x86/kvm/trace.h b/instrumentation/events/mainline/arch/x86/kvm/trace.h
index fe5e00e..545245d 100644
--- a/instrumentation/events/mainline/arch/x86/kvm/trace.h
+++ b/instrumentation/events/mainline/arch/x86/kvm/trace.h
@@ -756,6 +756,27 @@ TRACE_EVENT(
__entry->gpa_match ? "GPA" : "GVA")
);
+TRACE_EVENT(kvm_write_tsc_offset,
+ TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset,
+ __u64 next_tsc_offset),
+ TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset),
+
+ TP_STRUCT__entry(
+ __field( unsigned int, vcpu_id )
+ __field( __u64, previous_tsc_offset )
+ __field( __u64, next_tsc_offset )
+ ),
+
+ TP_fast_assign(
+ __entry->vcpu_id = vcpu_id;
+ __entry->previous_tsc_offset = previous_tsc_offset;
+ __entry->next_tsc_offset = next_tsc_offset;
+ ),
+
+ TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id,
+ __entry->previous_tsc_offset, __entry->next_tsc_offset)
+);
+
#ifdef CONFIG_X86_64
#define host_clocks \
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-10 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1381283373-25699-1-git-send-email-mohamad.gebai@polymtl.ca>
2013-10-10 14:38 ` [PATCH lttng-modules v2] Add new tracepoint in KVM Mathieu Desnoyers
2013-10-09 1:49 Mohamad Gebai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.