Re: [evlog-dev] Does evlog kernel part work on 2.6 kernel?

James Keniston <[email protected]> Fri, 26 Mar 2004 11:43:06 -0800
Newsgroups gmane.linux.kernel.event-logging
Message-ID <OFF6BC402A.58ACA0AE-ON88256E63.00692116-88256E63.006C50EE@us.ibm.com>
--0__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: multipart/alternative; 
	Boundary="1__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786"

--1__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable






The kernel/test directory needs to be cleaned up to reflect recent
changes.  Sorry for the inconvenience.

In recent implementations of kernel event logging, the facility is
passed as a string (e.g., "kern" or "e100") rather than a number.
(In user mode, it's still an integer.)  This has several implications:

- In evl_log.h, posix_log_facility_t is now const char*.

- evl_gen_facility_code() and evl_register_facility() can still be call=
ed,
but they're essentially no-ops.  In particular evl_register_facility()
no longer logs a "register facility" event.  (To register a facility,
just use the command "evlfacility -a facname [-k]".)  So the kfacreg* t=
ests
in kernel/test (test3.sh, test4.sh) don't pass.

I've updated evltestmod.c and added a corresponding template
(evltestmod.t) to make that test architecture-independent.  See the
new test7.sh.  I just checked that in to CVS.

That said, I'm not sure why "insmod evltestmod.ko" yielded no events.
Did you enable CONFIG_EVLOG via "make *config"?

Jim Keniston


|---------+-------------------------------------------->
|         |           "Zhu, Yi" <[email protected]>     |
|         |           Sent by:                         |
|         |           [email protected]|
|         |           ceforge.net                      |
|         |                                            |
|         |                                            |
|         |           03/25/04 07:18 PM                |
|         |                                            |
|---------+-------------------------------------------->
  >--------------------------------------------------------------------=
-----------------------------------------------------------------------=
-------|
  |                                                                    =
                                                                       =
       |
  |       To:       <[email protected]>           =
                                                                       =
       |
  |       cc:                                                          =
                                                                       =
       |
  |       Subject:  [evlog-dev] Does evlog kernel part work on 2.6 kern=
el?                                                                    =
       |
  |                                                                    =
                                                                       =
       |
  >--------------------------------------------------------------------=
-----------------------------------------------------------------------=
-------|





Hi,

Iong time no see!

I use SUSE SLES 9 shipped evlog.

$ uname -a
Linux atca4 2.6.3-30-bigsmp #3 SMP Tue Jan 7 16:22:35 PST 2003 i686 i68=
6
i386 GNU/Linux

I found the evlog kernel part doesn't work. For example,

$ insmod ./evltestmod.ko
$ evlview

Nothing appended!

Their kernel source contains three evlog files, evlapi.c evlbuf.c
evlposix.c

Evlog is enabled in kernel.
$ cat /proc/kallsyms |grep posix_log
c0148570 T posix_log_write
c0148610 T posix_log_vprintf
c0148710 T posix_log_printf

Any ideas? (btw, the userspace part works well)


Another problem is when I insmod kfacreg2.ko

$evlview
recid=3D505, size=3D0, format=3D13281, event_type=3D0x33e1, facility=3D=
0x74736574,
severity=3D1668244575, uid=3D1668244575, gid=3D4019257344, pid=3D176838=
3826,
pgrp=3D1634890867, time=3DTue Jan  7 21:13:49 2003,
flags=3D0x69636162 (KERNEL|PRINTK), thread=3D0x7974696c, processor=3D87=
36,
host=3D0x6574
evlview: evlview.c:903: copyRecord: Assertion `status =3D=3D 0 || statu=
s =3D=3D
90' failed.
Aborted


Thanks,
-----------------------------------------------------------------
Opinions expressed are those of the author and do not represent Intel
Corp.

- Zhu Yi (Chuyee)

GnuPG v1.0.6 (GNU/Linux)
http://cn.geocities.com/chewie_chuyee/gpg.txt or
$ gpg --keyserver wwwkeys.pgp.net --recv-keys 71C34820
1024D/71C34820 C939 2B0B FBCE 1D51 109A  55E5 8650 DB90 71C3 4820


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick
_______________________________________________
evlog-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/evlog-developers

=

--1__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: text/html; charset=ISO-8859-1
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

<html><body>
<p>The kernel/test directory needs to be cleaned up to reflect recent <=
br>
changes.  Sorry for the inconvenience.<br>
<br>
In recent implementations of kernel event logging, the facility is<br>
passed as a string (e.g., &quot;kern&quot; or &quot;e100&quot;) rather =
than a number.<br>
(In user mode, it's still an integer.)  This has several implications:<=
br>
<br>
- In evl_log.h, posix_log_facility_t is now const char*.<br>
<br>
- evl_gen_facility_code() and evl_register_facility() can still be call=
ed,<br>
but they're essentially no-ops.  In particular evl_register_facility()<=
br>
no longer logs a &quot;register facility&quot; event.  (To register a f=
acility,<br>
just use the command &quot;evlfacility -a facname [-k]&quot;.)  So the =
kfacreg* tests<br>
in kernel/test (test3.sh, test4.sh) don't pass.<br>
<br>
I've updated evltestmod.c and added a corresponding template <br>
(evltestmod.t) to make that test architecture-independent.  See the<br>=

new test7.sh.  I just checked that in to CVS. <br>
<br>
That said, I'm not sure why &quot;insmod evltestmod.ko&quot; yielded no=
 events.<br>
Did you enable CONFIG_EVLOG via &quot;make *config&quot;?<br>
<br>
Jim Keniston<br>
<img src=3D"cid:[email protected]" width=3D=
"16" height=3D"16" alt=3D"Inactive hide details for &quot;Zhu, Yi&quot;=
 &lt;[email protected]&gt;">&quot;Zhu, Yi&quot; &lt;[email protected]&gt;=
<br>
<br>
<br>

<table V5DOTBL=3Dtrue width=3D"100%" border=3D"0" cellspacing=3D"0" cel=
lpadding=3D"0">
<tr valign=3D"top"><td width=3D"1%"><img src=3D"cid:20__=3D07BBE4F0DFFA=
[email protected]" border=3D"0" height=3D"1" width=3D"72" al=
t=3D""><br>
</td><td style=3D"background-image:url(cid:30__=3D07BBE4F0DFFAA7868f9e8=
[email protected]); background-repeat: no-repeat; " width=3D"1%"><img=
 src=3D"cid:[email protected]" border=3D"=
0" height=3D"1" width=3D"225" alt=3D""><br>

<ul>
<ul>
<ul>
<ul><b><font size=3D"2">&quot;Zhu, Yi&quot; &lt;[email protected]&gt;</f=
ont></b><br>
<font size=3D"2">Sent by: [email protected]<=
/font>
<p><font size=3D"2">03/25/04 07:18 PM</font></ul>
</ul>
</ul>
</ul>
</td><td width=3D"100%"><img src=3D"cid:20__=3D07BBE4F0DFFAA7868f9e8a93=
[email protected]" border=3D"0" height=3D"1" width=3D"1" alt=3D""><br>

<ul><font size=3D"1" face=3D"Arial">	</font></ul>
<font size=3D"2">	To:	</font><font size=3D"2">&lt;evlog-developers@list=
s.sourceforge.net&gt;</font><br>
<font size=3D"2">	cc:	</font><br>
<font size=3D"2">	Subject:	</font><font size=3D"2">[evlog-dev] Does evl=
og kernel part work on 2.6 kernel?</font></td></tr>
</table>
<br>
<br>
<font face=3D"Courier New"><br>
Hi,<br>
<br>
Iong time no see!<br>
<br>
I use SUSE SLES 9 shipped evlog. <br>
<br>
$ uname -a<br>
Linux atca4 2.6.3-30-bigsmp #3 SMP Tue Jan 7 16:22:35 PST 2003 i686 i68=
6<br>
i386 GNU/Linux<br>
<br>
I found the evlog kernel part doesn't work. For example,<br>
<br>
$ insmod ./evltestmod.ko<br>
$ evlview<br>
<br>
Nothing appended!<br>
<br>
Their kernel source contains three evlog files, evlapi.c evlbuf.c<br>
evlposix.c<br>
<br>
Evlog is enabled in kernel.<br>
$ cat /proc/kallsyms |grep posix_log<br>
c0148570 T posix_log_write<br>
c0148610 T posix_log_vprintf<br>
c0148710 T posix_log_printf<br>
<br>
Any ideas? (btw, the userspace part works well)<br>
<br>
<br>
Another problem is when I insmod kfacreg2.ko<br>
<br>
$evlview<br>
recid=3D505, size=3D0, format=3D13281, event_type=3D0x33e1, facility=3D=
0x74736574,<br>
severity=3D1668244575, uid=3D1668244575, gid=3D4019257344, pid=3D176838=
3826,<br>
pgrp=3D1634890867, time=3DTue Jan  7 21:13:49 2003,<br>
flags=3D0x69636162 (KERNEL|PRINTK), thread=3D0x7974696c, processor=3D87=
36,<br>
host=3D0x6574<br>
evlview: evlview.c:903: copyRecord: Assertion `status =3D=3D 0 || statu=
s =3D=3D<br>
90' failed.<br>
Aborted<br>
<br>
<br>
Thanks,<br>
-----------------------------------------------------------------<br>
Opinions expressed are those of the author and do not represent Intel<b=
r>
Corp.<br>
<br>
- Zhu Yi (Chuyee)<br>
<br>
GnuPG v1.0.6 (GNU/Linux)<br>
</font><font face=3D"Courier New"><a href=3D"http://cn.geocities.com/ch=
ewie_chuyee/gpg.txt">http://cn.geocities.com/chewie_chuyee/gpg.txt</a><=
/font><font face=3D"Courier New"> or<br>
$ gpg --keyserver wwwkeys.pgp.net --recv-keys 71C34820<br>
1024D/71C34820 C939 2B0B FBCE 1D51 109A  55E5 8650 DB90 71C3 4820 <br>
<br>
<br>
-------------------------------------------------------<br>
This SF.Net email is sponsored by: IBM Linux Tutorials<br>
Free Linux tutorial presented by Daniel Robbins, President and CEO of<b=
r>
GenToo technologies. Learn everything from fundamentals to system<br>
administration.http://ads.osdn.com/?ad_id=1470&amp;alloc_id638&amp;op=3D=
click<br>
_______________________________________________<br>
evlog-developers mailing list<br>
[email protected]<br>
</font><font face=3D"Courier New"><a href=3D"https://lists.sourceforge.=
net/lists/listinfo/evlog-developers">https://lists.sourceforge.net/list=
s/listinfo/evlog-developers</a></font><font face=3D"Courier New"><br>
</font>

</body></html>=


--1__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786--


--0__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: image/gif; 
	name="graycol.gif"
Content-Disposition: inline; filename="graycol.gif"
Content-ID: <[email protected]>
Content-transfer-encoding: base64

R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu
ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7

--0__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: image/gif; 
	name="ecblank.gif"
Content-Disposition: inline; filename="ecblank.gif"
Content-ID: <[email protected]>
Content-transfer-encoding: base64

R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7

--0__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786
Content-type: image/gif; 
	name="pic29251.gif"
Content-Disposition: inline; filename="pic29251.gif"
Content-ID: <[email protected]>
Content-transfer-encoding: base64

R0lGODlhWABDALP/AAAAAK04Qf79/o+Gm7WuwlNObwoJFCsoSMDAwGFsmIuezf///wAAAAAAAAAA
AAAAACH5BAEAAAgALAAAAABYAEMAQAT/EMlJq704682770RiFMRinqggEUNSHIchG0BCfHhOjAuh
EDeUqTASLCbBhQrhG7xis2j0lssNDopE4jfIJhDaggI8YB1sZeZgLVA9YVCpnGagVjV171aRVrYR
RghXcAGFhoUETwYxcXNyADJ3GlcSKGAwLwllVC1vjIUHBWsFilKQdI8GA5IcpApeJQt8L09lmgkH
LZikoU5wjqcyAMMFrJIDPAKvCFletKSev1HBw8KrxtjZ2tvc3d5VyKtCKW3jfz4uMKmq3xu4N0nK
BVoJQmx2LGVOmrqNjjJf2hHAQo/eDwJGTKhQMcgQEEAnEjFS98+RnW3smGkZU6ncCWav/4wYOnAI
TihRL/4FEwbp28BXMMcoscQCVxlepL4IGDSCyJyVQOu0o7CjmLN50OZlqWmyFy5/6yBBuji0AxFR
M00oQAqNIstqI6qKHUsWRAEAvagsmfUEAImyxgbmUpJk3IklNUtJOUAVLoUr1+wqDGTE4zk+T6FG
uQb3SizBCwatiiUgCBN8vrz+zFjVyQ8FWkOlg4NQiZMB5QS8QO3mpOaKnL0Z2EKvNMSILEThKhCg
zMKPVxYJh23qm9KNW7pArPynMqZDiErsTMqI+LRi3QAgkFUbXpuFKhSYZALd0O5RKa2z9EYKBbpb
qxIKsjUPRgD7I2XYV6wyrOw92ykExP8NW4URhknC5dKGE4v4NENQj2jXjmfNgOZDaXb5glRmXQ33
YEWQYNcZFnrYcIQLNzyTFDQNkXIff0ExVlY4srziQk43inZgL4rwxxINMvpFFAz1KOODHiu+4aEw
NEjFl5B3JIKWKF3k6I9bfUGp5ZZcdunll5IA4cuHvQQJ5gcsoCWOOUwgltIwAKRxJgbIkJAQZEq0
2YliZnpZZ4BH3CnYOXldOUOfQoYDqF1LFHbXCrO8xmRsfoXDXJ6ChjCAH3QlhJcT6VWE6FCkfCco
CgrMFsROrIEX3o2whVjWDjoJccN3LdggSGXLCdLEgHr1lyU3O3QxhgohNKXJCWv8JQr/PDdaqd6w
2rj1inLiGeiCJoDspAoQlYE6QWLSECehcWIYxIQES6zhbn1iImTHEQyqJ4eIxJJoUBc+3CbBuwZE
V5cJPPkIjFDdeEabQbd6WgICTxiiz0f5dBKquXF6k4senwEhYGnKEFJeGrxUZy8dB8gmAXI/sPvH
ESfCwVt5hTgYiqQqtdRNHQIU1PJ33ZqmzgE90OwLaoJcnMop1WiMmgkPHQRIrwgFuNV90A3doNKT
mrKIN07AnGcI9BQjhCBN4RfA1qIZnMqorJCogKfGQnxSCDilTVIA0yl5ciTovgLuBDKFUDE9aQcw
9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgmQEyb
jqRwSAt6bqMCOFkvKFN2GPPkUzIm/SCF8z8pVzpbjVnMsy0vOr1hw3SaSRUhpY09v0z0J1FnwzPl
fmh+xl4WtR0zGu24I4KbMQm3lnVu2oNWxI9W/lcyzA+mCKF4DBikxb/+UWtOGRiFP8qEwAayIgIA
Ow==

--0__=07BBE4F0DFFAA7868f9e8a93df938690918c07BBE4F0DFFAA786--



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click