-
Notifications
You must be signed in to change notification settings - Fork 334
test: Add data relocation test #1244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c | ||
| index 172261a908d8..4fdd666cc75a 100644 | ||
| --- a/drivers/usb/serial/ir-usb.c | ||
| +++ b/drivers/usb/serial/ir-usb.c | ||
| @@ -194,10 +194,15 @@ static u8 ir_xbof_change(u8 xbof) | ||
| return(result); | ||
| } | ||
|
|
||
| +#include "usb-wwan.h" | ||
| static int ir_startup(struct usb_serial *serial) | ||
| { | ||
| struct usb_irda_cs_descriptor *irda_desc; | ||
| int rates; | ||
| + volatile int i = 0; | ||
| + static volatile void *funcs[] = {usb_wwan_open, usb_wwan_close}; | ||
| + | ||
| + printk("kpatch: usb_wwan_open=%p\n", funcs[i]); | ||
|
|
||
| irda_desc = irda_usb_find_class_desc(serial, 0); | ||
| if (!irda_desc) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't seem to build this patch, I get this error, Here are my versions, probably something is compiling slightly different for me:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I'm not ready for gcc11 environment yet. I will check it as soon as it is ready.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could not get this error with gcc11 of ubuntu21.04. my versions: |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| sudo modprobe usb_wwan | ||
| sudo modprobe ir-usb | ||
| sleep 5 | ||
|
|
||
| $KPATCH load test-data-reloc.ko | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our integration test scripts could stand to be more robust, but a similar one: set -o errexit
...
sudo modprobe nfsd
sleep 5
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should supercede the assignment here:
kpatch/test/integration/common/multiple.template
Line 3 in aaaebaf
In that case, the assignment in multiple.template can be removed and I think it should percolate down to that test just as it did for the new one in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed KPATCH assignment in multiple.template.