diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2005-06-25 17:55:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:37 -0400 |
commit | 66a464dbc8e0345b6f972b92bf1118e043d7c987 (patch) | |
tree | 4c8f83ce6b1879556025fe77b97629a8380aa4dd /drivers/s390/net/qeth.h | |
parent | 6b979de395c7e1b7e59f74a870e1d1911853eccb (diff) |
[PATCH] s390: debug feature changes
This patch changes the memory allocation method for the s390 debug feature.
Trace buffers had been allocated using the get_free_pages() function before.
Therefore it was not possible to get big memory areas in a running system due
to memory fragmentation. Now the trace buffers are subdivided into several
subbuffers with pagesize. Therefore it is now possible to allocate more
memory for the trace buffers and more trace records can be written.
In addition to that, dynamic specification of the size of the trace buffers is
implemented. It is now possible to change the size of a trace buffer using a
new debugfs file instance. When writing a number into this file, the trace
buffer size is changed to 'number * pagesize'.
In the past all the traces could be obtained from userspace by accessing files
in the "proc" filesystem. Now with debugfs we have a new filesystem which
should be used for debugging purposes. This patch moves the debug feature
from procfs to debugfs.
Since the interface of debug_register() changed, all device drivers, which use
the debug feature had to be adjusted.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/net/qeth.h')
-rw-r--r-- | drivers/s390/net/qeth.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/s390/net/qeth.h b/drivers/s390/net/qeth.h index a755b57db46b..008e0a5d2eb3 100644 --- a/drivers/s390/net/qeth.h +++ b/drivers/s390/net/qeth.h | |||
@@ -42,44 +42,44 @@ | |||
42 | */ | 42 | */ |
43 | #define QETH_DBF_SETUP_NAME "qeth_setup" | 43 | #define QETH_DBF_SETUP_NAME "qeth_setup" |
44 | #define QETH_DBF_SETUP_LEN 8 | 44 | #define QETH_DBF_SETUP_LEN 8 |
45 | #define QETH_DBF_SETUP_INDEX 3 | 45 | #define QETH_DBF_SETUP_PAGES 8 |
46 | #define QETH_DBF_SETUP_NR_AREAS 1 | 46 | #define QETH_DBF_SETUP_NR_AREAS 1 |
47 | #define QETH_DBF_SETUP_LEVEL 5 | 47 | #define QETH_DBF_SETUP_LEVEL 5 |
48 | 48 | ||
49 | #define QETH_DBF_MISC_NAME "qeth_misc" | 49 | #define QETH_DBF_MISC_NAME "qeth_misc" |
50 | #define QETH_DBF_MISC_LEN 128 | 50 | #define QETH_DBF_MISC_LEN 128 |
51 | #define QETH_DBF_MISC_INDEX 1 | 51 | #define QETH_DBF_MISC_PAGES 2 |
52 | #define QETH_DBF_MISC_NR_AREAS 1 | 52 | #define QETH_DBF_MISC_NR_AREAS 1 |
53 | #define QETH_DBF_MISC_LEVEL 2 | 53 | #define QETH_DBF_MISC_LEVEL 2 |
54 | 54 | ||
55 | #define QETH_DBF_DATA_NAME "qeth_data" | 55 | #define QETH_DBF_DATA_NAME "qeth_data" |
56 | #define QETH_DBF_DATA_LEN 96 | 56 | #define QETH_DBF_DATA_LEN 96 |
57 | #define QETH_DBF_DATA_INDEX 3 | 57 | #define QETH_DBF_DATA_PAGES 8 |
58 | #define QETH_DBF_DATA_NR_AREAS 1 | 58 | #define QETH_DBF_DATA_NR_AREAS 1 |
59 | #define QETH_DBF_DATA_LEVEL 2 | 59 | #define QETH_DBF_DATA_LEVEL 2 |
60 | 60 | ||
61 | #define QETH_DBF_CONTROL_NAME "qeth_control" | 61 | #define QETH_DBF_CONTROL_NAME "qeth_control" |
62 | #define QETH_DBF_CONTROL_LEN 256 | 62 | #define QETH_DBF_CONTROL_LEN 256 |
63 | #define QETH_DBF_CONTROL_INDEX 3 | 63 | #define QETH_DBF_CONTROL_PAGES 8 |
64 | #define QETH_DBF_CONTROL_NR_AREAS 2 | 64 | #define QETH_DBF_CONTROL_NR_AREAS 2 |
65 | #define QETH_DBF_CONTROL_LEVEL 5 | 65 | #define QETH_DBF_CONTROL_LEVEL 5 |
66 | 66 | ||
67 | #define QETH_DBF_TRACE_NAME "qeth_trace" | 67 | #define QETH_DBF_TRACE_NAME "qeth_trace" |
68 | #define QETH_DBF_TRACE_LEN 8 | 68 | #define QETH_DBF_TRACE_LEN 8 |
69 | #define QETH_DBF_TRACE_INDEX 2 | 69 | #define QETH_DBF_TRACE_PAGES 4 |
70 | #define QETH_DBF_TRACE_NR_AREAS 2 | 70 | #define QETH_DBF_TRACE_NR_AREAS 2 |
71 | #define QETH_DBF_TRACE_LEVEL 3 | 71 | #define QETH_DBF_TRACE_LEVEL 3 |
72 | extern debug_info_t *qeth_dbf_trace; | 72 | extern debug_info_t *qeth_dbf_trace; |
73 | 73 | ||
74 | #define QETH_DBF_SENSE_NAME "qeth_sense" | 74 | #define QETH_DBF_SENSE_NAME "qeth_sense" |
75 | #define QETH_DBF_SENSE_LEN 64 | 75 | #define QETH_DBF_SENSE_LEN 64 |
76 | #define QETH_DBF_SENSE_INDEX 1 | 76 | #define QETH_DBF_SENSE_PAGES 2 |
77 | #define QETH_DBF_SENSE_NR_AREAS 1 | 77 | #define QETH_DBF_SENSE_NR_AREAS 1 |
78 | #define QETH_DBF_SENSE_LEVEL 2 | 78 | #define QETH_DBF_SENSE_LEVEL 2 |
79 | 79 | ||
80 | #define QETH_DBF_QERR_NAME "qeth_qerr" | 80 | #define QETH_DBF_QERR_NAME "qeth_qerr" |
81 | #define QETH_DBF_QERR_LEN 8 | 81 | #define QETH_DBF_QERR_LEN 8 |
82 | #define QETH_DBF_QERR_INDEX 1 | 82 | #define QETH_DBF_QERR_PAGES 2 |
83 | #define QETH_DBF_QERR_NR_AREAS 2 | 83 | #define QETH_DBF_QERR_NR_AREAS 2 |
84 | #define QETH_DBF_QERR_LEVEL 2 | 84 | #define QETH_DBF_QERR_LEVEL 2 |
85 | 85 | ||