jump_label.c (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) | jump_label.c (fa5e5dc39669b4427830c546ede8709323b8276c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * jump label support 4 * 5 * Copyright (C) 2009 Jason Baron <jbaron@redhat.com> 6 * Copyright (C) 2011 Peter Zijlstra 7 * 8 */ --- 295 unchanged lines hidden (view full) --- 304 key->timeout = rl; 305 INIT_DELAYED_WORK(&key->work, jump_label_update_timeout); 306} 307EXPORT_SYMBOL_GPL(jump_label_rate_limit); 308 309static int addr_conflict(struct jump_entry *entry, void *start, void *end) 310{ 311 if (jump_entry_code(entry) <= (unsigned long)end && | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * jump label support 4 * 5 * Copyright (C) 2009 Jason Baron <jbaron@redhat.com> 6 * Copyright (C) 2011 Peter Zijlstra 7 * 8 */ --- 295 unchanged lines hidden (view full) --- 304 key->timeout = rl; 305 INIT_DELAYED_WORK(&key->work, jump_label_update_timeout); 306} 307EXPORT_SYMBOL_GPL(jump_label_rate_limit); 308 309static int addr_conflict(struct jump_entry *entry, void *start, void *end) 310{ 311 if (jump_entry_code(entry) <= (unsigned long)end && |
312 jump_entry_code(entry) + JUMP_LABEL_NOP_SIZE > (unsigned long)start) | 312 jump_entry_code(entry) + jump_entry_size(entry) > (unsigned long)start) |
313 return 1; 314 315 return 0; 316} 317 318static int __jump_label_text_reserved(struct jump_entry *iter_start, 319 struct jump_entry *iter_stop, void *start, void *end) 320{ --- 543 unchanged lines hidden --- | 313 return 1; 314 315 return 0; 316} 317 318static int __jump_label_text_reserved(struct jump_entry *iter_start, 319 struct jump_entry *iter_stop, void *start, void *end) 320{ --- 543 unchanged lines hidden --- |