-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 228607 b: refs/heads/master c: ca9693a h: refs/heads/master i: 228605: 5489cb5 228603: 10fc21d 228599: daced3f 228591: e6d69ef 228575: 581cf61 228543: f9069dd 228479: 2c5fb0a 228351: 89afbff v: v3
- Loading branch information
Dave Airlie
committed
Dec 16, 2010
1 parent
e7a591b
commit a77bbaa
Showing
7 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: c45aadabb961501b3e64bc92d0bf12fdce26d37d | ||
refs/heads/master: ca9693a17368041dd5416b0f1f93daaf7a5a5308 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#if !defined(_RADEON_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _RADEON_TRACE_H_ | ||
|
||
#include <linux/stringify.h> | ||
#include <linux/types.h> | ||
#include <linux/tracepoint.h> | ||
|
||
#include <drm/drmP.h> | ||
|
||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM radeon | ||
#define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM) | ||
#define TRACE_INCLUDE_FILE radeon_trace | ||
|
||
TRACE_EVENT(radeon_bo_create, | ||
TP_PROTO(struct radeon_bo *bo), | ||
TP_ARGS(bo), | ||
TP_STRUCT__entry( | ||
__field(struct radeon_bo *, bo) | ||
__field(u32, pages) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->bo = bo; | ||
__entry->pages = bo->tbo.num_pages; | ||
), | ||
TP_printk("bo=%p, pages=%u", __entry->bo, __entry->pages) | ||
); | ||
|
||
DECLARE_EVENT_CLASS(radeon_fence_request, | ||
|
||
TP_PROTO(struct drm_device *dev, u32 seqno), | ||
|
||
TP_ARGS(dev, seqno), | ||
|
||
TP_STRUCT__entry( | ||
__field(u32, dev) | ||
__field(u32, seqno) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->dev = dev->primary->index; | ||
__entry->seqno = seqno; | ||
), | ||
|
||
TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) | ||
); | ||
|
||
DEFINE_EVENT(radeon_fence_request, radeon_fence_emit, | ||
|
||
TP_PROTO(struct drm_device *dev, u32 seqno), | ||
|
||
TP_ARGS(dev, seqno) | ||
); | ||
|
||
DEFINE_EVENT(radeon_fence_request, radeon_fence_retire, | ||
|
||
TP_PROTO(struct drm_device *dev, u32 seqno), | ||
|
||
TP_ARGS(dev, seqno) | ||
); | ||
|
||
DEFINE_EVENT(radeon_fence_request, radeon_fence_wait_begin, | ||
|
||
TP_PROTO(struct drm_device *dev, u32 seqno), | ||
|
||
TP_ARGS(dev, seqno) | ||
); | ||
|
||
DEFINE_EVENT(radeon_fence_request, radeon_fence_wait_end, | ||
|
||
TP_PROTO(struct drm_device *dev, u32 seqno), | ||
|
||
TP_ARGS(dev, seqno) | ||
); | ||
|
||
#endif | ||
|
||
/* This part must be outside protection */ | ||
#undef TRACE_INCLUDE_PATH | ||
#define TRACE_INCLUDE_PATH . | ||
#include <trace/define_trace.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* Copyright Red Hat Inc 2010. | ||
* Author : Dave Airlie <airlied@redhat.com> | ||
*/ | ||
#include <drm/drmP.h> | ||
#include "radeon_drm.h" | ||
#include "radeon.h" | ||
|
||
#define CREATE_TRACE_POINTS | ||
#include "radeon_trace.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters